2008/4/14, Dan Nicholson <[EMAIL PROTECTED]>:
> Personally, I think this is a worthwhile optimization even if there
> are corner cases where you have to run `make clean' first.
>
> If this is really not something people want, I can easily change it so
> that validxml is always run. I certainly didn't introduce these
> changes to make people's lives more difficult.
I think it is still possible to avoid both running validxml
unconditionally and an outdated list of dependencies, at the cost of
running the equivalent of "find" unconditionally. Something like this
quick and dirty solution:
Index: Makefile
===================================================================
--- Makefile (revision 7380)
+++ Makefile (working copy)
@@ -13,6 +13,8 @@
PDF_OUTPUT = BLFS-BOOK.pdf
NOCHUNKS_OUTPUT = BLFS-BOOK.html
+ALLXML := $(filter-out $(RENDERTMP)/%, $(wildcard *.xml */*.xml
*/*/*.xml */*/*/*.xml))
+
ifdef V
Q =
else
@@ -97,7 +99,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)
@echo "Validating the book..."
$(Q)[ -d $(RENDERTMP) ] || mkdir -p $(RENDERTMP)
$(Q)xmllint --nonet --noent --xinclude --postvalid \
--
Alexander E. Patrakov
--
http://linuxfromscratch.org/mailman/listinfo/blfs-dev
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page