Split off creation of the HELPERFILE to a separate target

svn path=/branches/test/; revision=13942
This commit is contained in:
adridg 2010-01-06 16:29:24 +00:00
parent 63dff670e1
commit b48494239d

View File

@ -32,10 +32,12 @@ sources := $(shell grep -l -R --include='*.xhtml' $(SELECT) . )
localmenus: localmenuinfo.xml
localmenuinfo.xml: $(sources)
$(HELPERFILE) :
rm -f $(HELPERFILE)
echo \<localmenuset\> > $(HELPERFILE)
grep -R --include='*.xhtml' $(SELECT) .| sed -e 's,$(FIND),$(REPLACE),' >> $(HELPERFILE)
echo \</localmenuset\> >> $(HELPERFILE)
localmenuinfo.xml: $(HELPERFILE) $(sources)
xsltproc -o $@ $(STYLESHEET) $(HELPERFILE)
rm -f $(HELPERFILE)