Remove usage of gmake's % syntax.
[doldaconnect.git] / config / Makefile.am
... / ...
CommitLineData
1bin_PROGRAMS=locktouch tthsum
2if DOLCONF
3bin_PROGRAMS+=dolconf
4endif
5if BASECONV
6bin_PROGRAMS+=baseconv
7else
8noinst_PROGRAMS=baseconv
9endif
10libexec_PROGRAMS=speedrec
11
12speedrec_SOURCES=speedrec.c
13locktouch_SOURCES=locktouch.c
14tthsum_SOURCES=tthsum.c
15dolconf_SOURCES=dolconf.c
16baseconv_SOURCES=baseconv.c
17BUILT_SOURCES=dolconf-assistant.gtk dolconf-wnd.gtk
18
19AM_CPPFLAGS=-I$(top_srcdir)/include
20tthsum_LDADD=$(top_srcdir)/common/libcommon.a
21baseconv_LDADD=$(top_srcdir)/common/libcommon.a
22
23dolconf.c: dolconf-assistant.desc dolconf-wnd.desc
24localedir=$(datadir)/locale
25dolconf_LDFLAGS= $(shell pkg-config --libs gtk+-2.0) \
26 $(shell pkg-config --libs libxml-2.0)
27dolconf_CPPFLAGS= $(shell pkg-config --cflags gtk+-2.0) \
28 $(shell pkg-config --cflags libxml-2.0) \
29 -DLOCALEDIR=\"$(localedir)\"
30dolconf_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
35EXTRA_DIST=doldacond.conf dc-filter dc-filtercmd dolconf-assistant.desc dolconf-wnd.desc
36
37install-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