Author: dnicholson
Date: 2008-04-14 23:06:28 -0600 (Mon, 14 Apr 2008)
New Revision: 7384
Modified:
trunk/BOOK/Makefile
Log:
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.
Modified: trunk/BOOK/Makefile
===================================================================
--- trunk/BOOK/Makefile 2008-04-15 04:52:07 UTC (rev 7383)
+++ trunk/BOOK/Makefile 2008-04-15 05:06:28 UTC (rev 7384)
@@ -13,6 +13,11 @@
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 @@
$(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 \
--
http://linuxfromscratch.org/mailman/listinfo/blfs-book
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page