[MPlayer-DOCS] r31152 - in trunk/DOCS/xml: Makefile Makefile.inc cs/Makefile de/Makefile en/Makefile es/Makefile fr/Makefile hu/Makefile it/Makefile pl/Makefile ru/Makefile zh_CN/Makefile

diego subversion at mplayerhq.hu
Tue May 11 01:39:17 CEST 2010


Author: diego
Date: Tue May 11 01:39:16 2010
New Revision: 31152

Log:
Pass a language variable to submakes instead of reading subdirectory Makefiles.

Deleted:
   trunk/DOCS/xml/en/Makefile
Modified:
   trunk/DOCS/xml/Makefile
   trunk/DOCS/xml/Makefile.inc

Changes in other areas also in this revision:
Deleted:
   trunk/DOCS/xml/cs/Makefile
   trunk/DOCS/xml/de/Makefile
   trunk/DOCS/xml/es/Makefile
   trunk/DOCS/xml/fr/Makefile
   trunk/DOCS/xml/hu/Makefile
   trunk/DOCS/xml/it/Makefile
   trunk/DOCS/xml/pl/Makefile
   trunk/DOCS/xml/ru/Makefile
   trunk/DOCS/xml/zh_CN/Makefile

Modified: trunk/DOCS/xml/Makefile
==============================================================================
--- trunk/DOCS/xml/Makefile	Sun May  9 23:36:10 2010	(r31151)
+++ trunk/DOCS/xml/Makefile	Tue May 11 01:39:16 2010	(r31152)
@@ -40,10 +40,10 @@ define lang-def
 html-chunked-$(lang) html-single-$(lang): $(HTML)/$(lang) $(CONFIGURE_GENERATED)
 
 html-chunked-$(lang):
-	$(MAKE) HTMLDIR=../$$< -C $(lang) html-chunked
+	$(MAKE) HTMLDIR=$$< LANG=$(lang) -f Makefile.inc html-chunked
 
 html-single-$(lang):
-	$(MAKE) HTMLDIR=../$$< -C $(lang) html-single
+	$(MAKE) HTMLDIR=$$< LANG=$(lang) -f Makefile.inc html-single
 
 xmllint-$(lang): xmllint.sh
 	$(MAKE) -C $(lang) xmllint

Modified: trunk/DOCS/xml/Makefile.inc
==============================================================================
--- trunk/DOCS/xml/Makefile.inc	Sun May  9 23:36:10 2010	(r31151)
+++ trunk/DOCS/xml/Makefile.inc	Tue May 11 01:39:16 2010	(r31152)
@@ -2,30 +2,33 @@
 # Makefile.inc for Makefiles in subdirectories.
 #
 
-HTML_CHUNK_XSL := ../html-chunk.xsl
-CHUNK_XSL_DEPS := $(HTML_CHUNK_XSL) ../html-common.xsl
+# Dependency information.
+$(HTMLDIR)/index.html $(HTMLDIR)/MPlayer.html: $(wildcard $(LANG)/*.xml)
 
-HTML_SINGLE_XSL := ../html-single.xsl
-SINGLE_XSL_DEPS := $(HTML_SINGLE_XSL) ../html-common.xsl
+HTML_CHUNK_XSL := html-chunk.xsl
+CHUNK_XSL_DEPS := $(HTML_CHUNK_XSL) html-common.xsl
+
+HTML_SINGLE_XSL := html-single.xsl
+SINGLE_XSL_DEPS := $(HTML_SINGLE_XSL) html-common.xsl
 
 # This is the main target...
 all: html-chunked html-single
 html-chunked: $(HTMLDIR)/index.html
 html-single:  $(HTMLDIR)/MPlayer.html
 
-xmllint: main.xml
-	../xmllint.sh $<
+xmllint: $(LANG)/main.xml
+	./xmllint.sh $<
 
 $(HTMLDIR)/default.css:
-	cp -f ../default.css $(@D)
+	cp -f default.css $(@D)
 
-$(HTMLDIR)/index.html: main.xml $(CHUNK_XSL_DEPS) xmllint $(HTMLDIR)/default.css
-	../xsltproc.sh $(HTMLDIR)/ $(HTML_CHUNK_XSL) $<
+$(HTMLDIR)/index.html: $(LANG)/main.xml $(CHUNK_XSL_DEPS) xmllint $(HTMLDIR)/default.css
+	./xsltproc.sh $(HTMLDIR)/ $(HTML_CHUNK_XSL) $<
 
-$(HTMLDIR)/MPlayer.html: main.xml $(SINGLE_XSL_DEPS) xmllint $(HTMLDIR)/default.css
-	../xsltproc.sh $@ $(HTML_SINGLE_XSL) $<
+$(HTMLDIR)/MPlayer.html: $(LANG)/main.xml $(SINGLE_XSL_DEPS) xmllint $(HTMLDIR)/default.css
+	./xsltproc.sh $@ $(HTML_SINGLE_XSL) $<
 
-../html-chunk.xsl ../html-single.xsl main.xml:
-	cd .. && sh configure
+html-chunk.xsl html-single.xsl $(LANG)/main.xml:
+	sh configure
 
 .PHONY: all html-chunked html-single xmllint


More information about the MPlayer-DOCS mailing list