Make GUI shell compilation optional, and add a desktop file for it.
[doldaconnect.git] / clients / gui-shell / Makefile.am
... / ...
CommitLineData
1if GUISHELL
2bin_PROGRAMS=dolcon-launch doldacond-shell
3app_DATA=dolcon.desktop
4endif
5
6dolcon_launch_SOURCES=launch.c
7
8doldacond_shell_SOURCES=dsh.c
9
10EXTRA_DIST=dsh-start.desc dsh-menu.desc dolcon.desktop
11BUILT_SOURCES=dsh-start.gtk dsh-menu.gtk
12
13dsh.c: dsh-start.gtk dsh-menu.gtk
14
15AM_CPPFLAGS=-I$(top_srcdir)/include
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" >$@
27
28appdir=$(datadir)/applications