changeset 29961:49149ee9cdfb

Create required directories directly without intermediate steps.
author diego
date Sun, 13 Dec 2009 22:15:50 +0000
parents 67727e918ec2
children fd112c1ef46e
files DOCS/xml/Makefile
diffstat 1 files changed, 3 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/DOCS/xml/Makefile	Sun Dec 13 22:10:39 2009 +0000
+++ b/DOCS/xml/Makefile	Sun Dec 13 22:15:50 2009 +0000
@@ -31,19 +31,17 @@
 
 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