Remove usage of gmake's % syntax.
[doldaconnect.git] / config / Makefile.am
1 bin_PROGRAMS=locktouch tthsum
2 if DOLCONF
3 bin_PROGRAMS+=dolconf
4 endif
5 if BASECONV
6 bin_PROGRAMS+=baseconv
7 else
8 noinst_PROGRAMS=baseconv
9 endif
10 libexec_PROGRAMS=speedrec
11
12 speedrec_SOURCES=speedrec.c
13 locktouch_SOURCES=locktouch.c
14 tthsum_SOURCES=tthsum.c
15 dolconf_SOURCES=dolconf.c
16 baseconv_SOURCES=baseconv.c
17 BUILT_SOURCES=dolconf-assistant.gtk dolconf-wnd.gtk
18
19 AM_CPPFLAGS=-I$(top_srcdir)/include
20 tthsum_LDADD=$(top_srcdir)/common/libcommon.a
21 baseconv_LDADD=$(top_srcdir)/common/libcommon.a
22
23 dolconf.c: dolconf-assistant.desc dolconf-wnd.desc
24 localedir=$(datadir)/locale
25 dolconf_LDFLAGS=        $(shell pkg-config --libs gtk+-2.0) \
26                         $(shell pkg-config --libs libxml-2.0)
27 dolconf_CPPFLAGS=       $(shell pkg-config --cflags gtk+-2.0) \
28                         $(shell pkg-config --cflags libxml-2.0) \
29                         -DLOCALEDIR=\"$(localedir)\"
30 dolconf_LDADD=          $(top_srcdir)/common/libcommon.a $(top_srcdir)/lib/libdcui.la
31
32 .desc.gtk: $(top_srcdir)/common/makegdesc
33         $(top_srcdir)/common/makegdesc $< >$@
34
35 EXTRA_DIST=doldacond.conf dc-filter dc-filtercmd dolconf-assistant.desc dolconf-wnd.desc
36
37 install-data-local:
38         $(mkinstalldirs) $(DESTDIR)$(sysconfdir); \
39         for file in doldacond.conf; do \
40                 if [ ! -e $(DESTDIR)$(sysconfdir)/$$file ]; then \
41                         $(INSTALL_DATA) $(srcdir)/$$file $(DESTDIR)$(sysconfdir)/$$file; \
42                 fi; \
43         done; \
44         for file in dc-filter dc-filtercmd; do \
45                 if [ ! -e $(DESTDIR)$(sysconfdir)/$$file ]; then \
46                         $(INSTALL) $(srcdir)/$$file $(DESTDIR)$(sysconfdir)/$$file; \
47                 fi; \
48         done