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

diego subversion at mplayerhq.hu
Sun Dec 13 23:15:50 CET 2009


Author: diego
Date: Sun Dec 13 23:15:50 2009
New Revision: 30003

Log:
Create required directories directly without intermediate steps.

Modified:
   trunk/DOCS/xml/Makefile

Modified: trunk/DOCS/xml/Makefile
==============================================================================
--- trunk/DOCS/xml/Makefile	Sun Dec 13 23:10:39 2009	(r30002)
+++ trunk/DOCS/xml/Makefile	Sun Dec 13 23:15:50 2009	(r30003)
@@ -31,19 +31,17 @@ html-single:  $(HTML_SINGLE)  $(addprefi
 
 xmllint: xmllint.sh $(addprefix xmllint-,$(DOC_LANG_ALL))
 
-$(HTML_CHUNKED) $(HTML_SINGLE):
+$(foreach lang,$(DOC_LANG_ALL),$(HTML_CHUNKED)/$(lang) $(HTML_SINGLE)/$(lang)):
 	-mkdir -p $@
 
 xsltproc.sh xmllint.sh:
 	sh configure
 
 define lang-def
-html-chunked-$(1): xsltproc.sh xmllint.sh $(HTML_CHUNKED)
-	-mkdir -p $(HTML_CHUNKED)/$(1)
+html-chunked-$(1): $(HTML_CHUNKED)/$(1) xsltproc.sh xmllint.sh
 	$(MAKE) HTMLDIR=../$(HTML_CHUNKED)/$(1) -C $(1) html-chunked
 
-html-single-$(1): xsltproc.sh xmllint.sh $(HTML_SINGLE)
-	-mkdir -p $(HTML_SINGLE)/$(1)
+html-single-$(1): $(HTML_SINGLE)/$(1) xsltproc.sh xmllint.sh
 	$(MAKE) HTMLFILE=../$(HTML_SINGLE)/$(1)/MPlayer.html -C $(1) html-single
 
 xmllint-$(1): xmllint.sh


More information about the MPlayer-DOCS mailing list