Make GUI shell compilation optional, and add a desktop file for it.
[doldaconnect.git] / clients / gui-shell / Makefile.am
CommitLineData
ed9135a0 1if GUISHELL
34d45a15 2bin_PROGRAMS=dolcon-launch doldacond-shell
ed9135a0
FT
3app_DATA=dolcon.desktop
4endif
f7a57385
FT
5
6dolcon_launch_SOURCES=launch.c
ec985ce4 7
34d45a15
FT
8doldacond_shell_SOURCES=dsh.c
9
ed9135a0 10EXTRA_DIST=dsh-start.desc dsh-menu.desc dolcon.desktop
34d45a15
FT
11BUILT_SOURCES=dsh-start.gtk dsh-menu.gtk
12
13dsh.c: dsh-start.gtk dsh-menu.gtk
14
ec985ce4 15AM_CPPFLAGS=-I$(top_srcdir)/include
34d45a15
FT
16localedir=$(datadir)/locale
17doldacond_shell_LDADD=$(top_srcdir)/lib/libdcui.la
18doldacond_shell_LDFLAGS= @GTK2_LIBS@ @LIBNOTIFY_LIBS@
19doldacond_shell_CPPFLAGS=@GTK2_CFLAGS@ @LIBNOTIFY_CFLAGS@ \
20 -DLOCALEDIR=\"$(localedir)\"
21
22.desc.gtk: $(top_srcdir)/common/makegdesc
23 target="$@"; \
24 basename="$${target%.gtk}"; \
25 cpp $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $< \
26 | $(top_srcdir)/common/makegdesc -h "$${basename}.gtkh" >$@
ed9135a0
FT
27
28appdir=$(datadir)/applications