]> Dogcows Code - chaz/openbox/commitdiff
fixes for auto* build process
authorDana Jansens <danakj@orodu.net>
Mon, 22 Sep 2003 07:45:36 +0000 (07:45 +0000)
committerDana Jansens <danakj@orodu.net>
Mon, 22 Sep 2003 07:45:36 +0000 (07:45 +0000)
Makefile.am

index 0d688f1ab8c3ff5b1f857d4fe98c03d62c36ec47..86a7e85d36068146af1247f9d9f69cab7004c13c 100644 (file)
@@ -278,9 +278,21 @@ dist_xsd_DATA = \
        data/rc.xsd \
        data/menu.xsd
 
-%.xml: %.xml.in
+edit = $(SED) \
+       -e 's!@version\@!$(VERSION)!' \
+       -e 's!@xsddir\@!$(xsddir)!'
+
+data/rc.xml: Makefile $(srcdir)/data/rc.xml.in data
+       @echo make: creating $@
+       @rm -f $@
+       @mkdir data 2>/dev/null || true
+       @$(edit) $(srcdir)/data/rc.xml.in >$@
+
+data/menu.xml: Makefile $(srcdir)/data/menu.xml.in data
        @echo make: creating $@
-       @$(SED) -e 's!@version@!$(VERSION)!' -e 's!@xsddir@!$(xsddir)!' $^ > $@
+       @rm -f $@
+       @mkdir data 2>/dev/null || true
+       @$(edit) $(srcdir)/data/menu.xml.in >$@
 
 dist_userscript_DATA = \
        tools/themeupdate/themeupdate.py
@@ -304,6 +316,10 @@ EXTRA_DIST = \
        COPYING \
        AUTHORS
 
+CLEANFILES = \
+       data/rc.xml \
+       data/menu.xml
+
 #doc:
 #       $(MAKE) -$(MAKEFLAGS) -C doc/doxygen doc
 
This page took 0.02307 seconds and 4 git commands to generate.