Move makegdesc to common.
[doldaconnect.git] / clients / gtk2 / Makefile.am
index affec2a..733873a 100644 (file)
@@ -4,18 +4,21 @@ dolcon_SOURCES=       main.c \
                progressbar.c \
                progressbar.h
 
-EXTRA_DIST=mainwnd.desc inpdialog.desc pref.desc reslist.desc makegdesc
+EXTRA_DIST=mainwnd.desc inpdialog.desc pref.desc reslist.desc $(top_srcdir)/common/makegdesc
 
 BUILT_SOURCES=mainwnd.gtk inpdialog.gtk pref.gtk reslist.gtk
 
 main.c: mainwnd.gtk inpdialog.gtk pref.gtk reslist.gtk
 
 localedir=$(datadir)/locale
-dolcon_LDFLAGS=$(shell pkg-config --libs gtk+-2.0)
+dolcon_LDFLAGS=        $(shell pkg-config --libs gtk+-2.0) \
+               $(shell pkg-config --libs libxml-2.0)
 dolcon_LDADD=$(top_srcdir)/lib/libdcui.la
-dolcon_CPPFLAGS=$(shell pkg-config --cflags gtk+-2.0) -DLOCALEDIR=\"$(localedir)\"
+dolcon_CPPFLAGS=$(shell pkg-config --cflags gtk+-2.0) \
+               $(shell pkg-config --cflags libxml-2.0) \
+               -DLOCALEDIR=\"$(localedir)\"
 
-%.gtk: %.desc makegdesc
-       cpp $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $< | ./makegdesc >$@
+%.gtk: %.desc $(top_srcdir)/common/makegdesc
+       cpp $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $< | $(top_srcdir)/common/makegdesc >$@
 
 mainwnd.desc: ../../config.h