[MPlayer-DOCS] r30013 - trunk/DOCS/xml/Makefile

diego subversion at mplayerhq.hu
Mon Dec 14 00:59:11 CET 2009


Author: diego
Date: Mon Dec 14 00:59:10 2009
New Revision: 30013

Log:
Factorize generating the list of all main.xml files.

Modified:
   trunk/DOCS/xml/Makefile

Modified: trunk/DOCS/xml/Makefile
==============================================================================
--- trunk/DOCS/xml/Makefile	Mon Dec 14 00:54:46 2009	(r30012)
+++ trunk/DOCS/xml/Makefile	Mon Dec 14 00:59:10 2009	(r30013)
@@ -5,6 +5,8 @@ include ../../config.mak
 # Generated HTML files go here.
 HTML = ../HTML
 
+MAIN_XML_ALL = $(foreach lang,$(DOC_LANG_ALL),$(lang)/main.xml)
+
 all: html-chunked html-single
 
 help:
@@ -31,7 +33,7 @@ xmllint: xmllint.sh $(addprefix xmllint-
 $(foreach lang,$(DOC_LANG_ALL),$(HTML)/$(lang)):
 	-mkdir -p $@
 
-html-chunk.xsl html-single.xsl xsltproc.sh xmllint.sh $(foreach lang,$(DOC_LANG_ALL),$(lang)/main.xml):
+html-chunk.xsl html-single.xsl xsltproc.sh xmllint.sh $(MAIN_XML_ALL):
 	sh configure
 
 define lang-def
@@ -51,7 +53,7 @@ clean:
 	rm -rf $(HTML)
 
 releaseclean:
-	rm -f $(foreach lang,$(DOC_LANG_ALL),$(lang)/main.xml)
+	rm -f $(MAIN_XML_ALL)
 	rm -f $$(find . -name *.xml -type l)
 	rm -f html-chunk.xsl html-single.xsl xsltproc.sh xmllint.sh
 


More information about the MPlayer-DOCS mailing list