Use all *.xml and *.xsl files as prereqs for blfs-full.xml, too

Thanks to Alexander for pointing out a much easier way to do this. I
think this should take care of nearly all the corner cases and allow
re-rendering to only occur when something has actually changed.


git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@7384 af4574ff-66df-0310-9fd7-8a98e5e911e0
This commit is contained in:
Dan Nichilson 2008-04-15 05:06:28 +00:00
parent c91c114e28
commit 6328b8935c

View File

@ -13,6 +13,11 @@ ROOT_ID =
PDF_OUTPUT = BLFS-BOOK.pdf
NOCHUNKS_OUTPUT = BLFS-BOOK.html
ALLXML := $(filter-out $(RENDERTMP)/%, \
$(wildcard *.xml */*.xml */*/*.xml */*/*/*.xml */*/*/*/*.xml))
ALLXSL := $(filter-out $(RENDERTMP)/%, \
$(wildcard *.xsl */*.xsl */*/*.xsl */*/*/*.xsl */*/*/*/*.xsl))
ifdef V
Q =
else
@ -97,7 +102,7 @@ clean:
$(Q)rmdir $(RENDERTMP) 2>/dev/null || :
validxml: $(RENDERTMP)/blfs-full.xml
$(RENDERTMP)/blfs-full.xml: index.xml general.ent
$(RENDERTMP)/blfs-full.xml: general.ent $(ALLXML) $(ALLXSL)
@echo "Validating the book..."
$(Q)[ -d $(RENDERTMP) ] || mkdir -p $(RENDERTMP)
$(Q)xmllint --nonet --noent --xinclude --postvalid \