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

diego subversion at mplayerhq.hu
Tue May 11 23:31:36 CEST 2010


Author: diego
Date: Tue May 11 23:31:36 2010
New Revision: 31166

Log:
Create output directory when copying stylesheet.
This eliminates one rule and simplifies dependencies.

Modified:
   trunk/DOCS/xml/Makefile

Modified: trunk/DOCS/xml/Makefile
==============================================================================
--- trunk/DOCS/xml/Makefile	Tue May 11 23:25:12 2010	(r31165)
+++ trunk/DOCS/xml/Makefile	Tue May 11 23:31:36 2010	(r31166)
@@ -30,18 +30,16 @@ html-single:  $(addprefix html-single-,$
 
 xmllint: $(addprefix xmllint-,$(DOC_LANGS))
 
-$(foreach lang,$(DOC_LANG_ALL),$(HTML)/$(lang)):
-	mkdir -p $@
-
 $(CONFIGURE_GENERATED) $(MAIN_XML_ALL):
 	sh configure
 
 define lang-def
 html-chunked-$(lang): $(HTML)/$(lang)/index.html
 html-single-$(lang):  $(HTML)/$(lang)/MPlayer.html
-$(HTML)/$(lang)/index.html $(HTML)/$(lang)/MPlayer.html: $(lang)/main.xml $(wildcard $(lang)/*.xml) $(HTML)/$(lang) html-common.xsl $(HTML)/$(lang)/default.css
+$(HTML)/$(lang)/index.html $(HTML)/$(lang)/MPlayer.html: $(lang)/main.xml $(wildcard $(lang)/*.xml) html-common.xsl $(HTML)/$(lang)/default.css
 
-$(HTML)/$(lang)/default.css: $(HTML)/$(lang)
+$(HTML)/$(lang)/default.css:
+	mkdir -p $$@
 	cp -f default.css $$(@D)
 
 $(HTML)/$(lang)/index.html:


More information about the MPlayer-DOCS mailing list