Use an Automake conditional for Guile lib building.
[doldaconnect.git] / share / Makefile.am
CommitLineData
444e8c28
FT
1appdir=$(datadir)/applications
2iconsdir=$(datadir)/icons/hicolor/48x48/apps
3
4icons_DATA=
5
6if GUISHELL
7realdesktop=dolcon-shell.desktop
8icons_DATA+=dolcon.png
9else
10if CLI_GTK2
11realdesktop=dolcon-gtk.desktop
12icons_DATA+=dolcon.png
13else
14realdesktop=none
15endif
16endif
17
5f187798 18EXTRA_DIST=hellodolda.png dolcon.png dolcon-gtk.desktop dolcon-shell.desktop
444e8c28
FT
19
20install-data-local:
a742fd84 21 if [ "$(realdesktop)" != none ]; then \
444e8c28
FT
22 $(mkinstalldirs) $(DESTDIR)$(appdir); \
23 $(INSTALL_DATA) $(srcdir)/$(realdesktop) $(DESTDIR)$(appdir)/dolcon.desktop; \
24 fi