[MPlayer-DOCS] r29993 - trunk/DOCS/xml/Makefile.inc

diego subversion at mplayerhq.hu
Sun Dec 13 13:28:42 CET 2009


Author: diego
Date: Sun Dec 13 13:28:42 2009
New Revision: 29993

Log:
Declare a dependency on xmllint instead of duplicating the target's commands.

Modified:
   trunk/DOCS/xml/Makefile.inc

Modified: trunk/DOCS/xml/Makefile.inc
==============================================================================
--- trunk/DOCS/xml/Makefile.inc	Fri Dec 11 23:27:42 2009	(r29992)
+++ trunk/DOCS/xml/Makefile.inc	Sun Dec 13 13:28:42 2009	(r29993)
@@ -39,7 +39,7 @@ SYMLINKS_DEPS:=$(if $(findstring yes,$(U
 xmllint: main.xml $(SYMLINKS_DEPS)
 	../xmllint.sh $<
 
-$(HTMLDIR)/index.html: main.xml $(CHUNK_XSL_DEPS) $(SYMLINKS_DEPS)
+$(HTMLDIR)/index.html: main.xml $(CHUNK_XSL_DEPS) $(SYMLINKS_DEPS) xmllint
 ifndef HTMLDIR
 	$(warning $(HTMLDIR))
 	$(warning Error: HTMLDIR not set!!!)
@@ -47,18 +47,16 @@ ifndef HTMLDIR
 	$(error Don't do this!)
 endif
 	-rm -f $(HTMLDIR)/*
-	../xmllint.sh $<
 	cp -f $(HTML_STYLESHEET) $(HTMLDIR)/
 	../xsltproc.sh $(HTMLDIR)/ $(HTML_CHUNK_XSL) $<
 
-$(HTMLFILE): main.xml $(XSL_DEPS) $(SYMLINKS_DEPS)
+$(HTMLFILE): main.xml $(XSL_DEPS) $(SYMLINKS_DEPS) xmllint
 ifndef HTMLFILE
 	$(warning Error: HTMLFILE not set!!!)
 	$(warning Typically this means, that you've run make from a subdir of DOCS/xml.)
 	$(error Don't do this!)
 endif
 	-rm -f $(HTMLFILE)
-	../xmllint.sh $<
 	cp -f $(HTML_STYLESHEET) `dirname $(HTMLFILE)`
 	../xsltproc.sh $(HTMLFILE) $(HTML_SINGLE_XSL) $<
 


More information about the MPlayer-DOCS mailing list