From b3bbc2eadafdb6c61dc76356c2c12f59ea6ca04c Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Mon, 22 Sep 2003 07:45:36 +0000 Subject: [PATCH] fixes for auto* build process --- Makefile.am | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git a/Makefile.am b/Makefile.am index 0d688f1a..86a7e85d 100644 --- a/Makefile.am +++ b/Makefile.am @@ -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 -- 2.45.2