Add compilation rules for dolconf.
authorfredrik <fredrik@959494ce-11ee-0310-bf91-de5d638817bd>
Sun, 22 Apr 2007 23:58:17 +0000 (23:58 +0000)
committerfredrik <fredrik@959494ce-11ee-0310-bf91-de5d638817bd>
Sun, 22 Apr 2007 23:58:17 +0000 (23:58 +0000)
git-svn-id: svn+ssh://svn.dolda2000.com/srv/svn/repos/src/doldaconnect@963 959494ce-11ee-0310-bf91-de5d638817bd

config/Makefile.am

index fbbbbe2..85baae7 100644 (file)
@@ -1,15 +1,28 @@
-bin_PROGRAMS=locktouch tthsum
+bin_PROGRAMS=locktouch tthsum dolconf
 libexec_PROGRAMS=speedrec
 
 speedrec_SOURCES=speedrec.c
-
 locktouch_SOURCES=locktouch.c
 tthsum_SOURCES=tthsum.c
+dolconf_SOURCES=dolconf.c
+BUILT_SOURCES=dolconf-assistant.gtk
 
 AM_CPPFLAGS=-I$(top_srcdir)/include
 tthsum_LDADD=$(top_srcdir)/common/libcommon.a
 
-EXTRA_DIST=doldacond.conf dc-filter dc-filtercmd
+dolconf.c: dolconf-assistant.desc
+localedir=$(datadir)/locale
+dolconf_LDFLAGS=       $(shell pkg-config --libs gtk+-2.0) \
+                       $(shell pkg-config --libs libxml-2.0)
+dolconf_CPPFLAGS=      $(shell pkg-config --cflags gtk+-2.0) \
+                       $(shell pkg-config --cflags libxml-2.0) \
+                       -DLOCALEDIR=\"$(localedir)\"
+dolconf_LDADD=         $(top_srcdir)/common/libcommon.a
+
+%.gtk: %.desc $(top_srcdir)/common/makegdesc
+       $(top_srcdir)/common/makegdesc $< >$@
+
+EXTRA_DIST=doldacond.conf dc-filter dc-filtercmd dolconf-assistant.desc
 
 install-data-local:
        $(mkinstalldirs) $(DESTDIR)$(sysconfdir); \