changeset 31095:7a2ec1d564ce

Pass a language variable to submakes instead of reading subdirectory Makefiles.
author diego
date Mon, 10 May 2010 23:39:16 +0000
parents 7299c551a7cd
children 0a999f052474
files DOCS/xml/Makefile DOCS/xml/Makefile.inc DOCS/xml/cs/Makefile DOCS/xml/de/Makefile DOCS/xml/en/Makefile DOCS/xml/es/Makefile DOCS/xml/fr/Makefile DOCS/xml/hu/Makefile DOCS/xml/it/Makefile DOCS/xml/pl/Makefile DOCS/xml/ru/Makefile DOCS/xml/zh_CN/Makefile
diffstat 12 files changed, 18 insertions(+), 55 deletions(-) [+]
line wrap: on
line diff
--- a/DOCS/xml/Makefile	Sun May 09 21:36:10 2010 +0000
+++ b/DOCS/xml/Makefile	Mon May 10 23:39:16 2010 +0000
@@ -40,10 +40,10 @@
 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
--- a/DOCS/xml/Makefile.inc	Sun May 09 21:36:10 2010 +0000
+++ b/DOCS/xml/Makefile.inc	Mon May 10 23:39:16 2010 +0000
@@ -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
--- a/DOCS/xml/cs/Makefile	Sun May 09 21:36:10 2010 +0000
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,4 +0,0 @@
-# Dependency information.
-$(HTMLDIR)/index.html $(HTMLDIR)/MPlayer.html: $(wildcard *.xml)
-
-include ../Makefile.inc
--- a/DOCS/xml/de/Makefile	Sun May 09 21:36:10 2010 +0000
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,4 +0,0 @@
-# Dependency information.
-$(HTMLDIR)/index.html $(HTMLDIR)/MPlayer.html: $(wildcard *.xml)
-
-include ../Makefile.inc
--- a/DOCS/xml/en/Makefile	Sun May 09 21:36:10 2010 +0000
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,4 +0,0 @@
-# Dependency information.
-$(HTMLDIR)/index.html $(HTMLDIR)/MPlayer.html: $(wildcard *.xml)
-
-include ../Makefile.inc
--- a/DOCS/xml/es/Makefile	Sun May 09 21:36:10 2010 +0000
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,4 +0,0 @@
-# Dependency information.
-$(HTMLDIR)/index.html $(HTMLDIR)/MPlayer.html: $(wildcard *.xml)
-
-include ../Makefile.inc
--- a/DOCS/xml/fr/Makefile	Sun May 09 21:36:10 2010 +0000
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,4 +0,0 @@
-# Dependency information.
-$(HTMLDIR)/index.html $(HTMLDIR)/MPlayer.html: $(wildcard *.xml)
-
-include ../Makefile.inc
--- a/DOCS/xml/hu/Makefile	Sun May 09 21:36:10 2010 +0000
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,4 +0,0 @@
-# Dependency information.
-$(HTMLDIR)/index.html $(HTMLDIR)/MPlayer.html: $(wildcard *.xml)
-
-include ../Makefile.inc
--- a/DOCS/xml/it/Makefile	Sun May 09 21:36:10 2010 +0000
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,4 +0,0 @@
-# Dependency information.
-$(HTMLDIR)/index.html $(HTMLDIR)/MPlayer.html: $(wildcard *.xml)
-
-include ../Makefile.inc
--- a/DOCS/xml/pl/Makefile	Sun May 09 21:36:10 2010 +0000
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,4 +0,0 @@
-# Dependency information.
-$(HTMLDIR)/index.html $(HTMLDIR)/MPlayer.html: $(wildcard *.xml)
-
-include ../Makefile.inc
--- a/DOCS/xml/ru/Makefile	Sun May 09 21:36:10 2010 +0000
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,4 +0,0 @@
-# Dependency information.
-$(HTMLDIR)/index.html $(HTMLDIR)/MPlayer.html: $(wildcard *.xml)
-
-include ../Makefile.inc
--- a/DOCS/xml/zh_CN/Makefile	Sun May 09 21:36:10 2010 +0000
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,4 +0,0 @@
-# Dependency information.
-$(HTMLDIR)/index.html $(HTMLDIR)/MPlayer.html: $(wildcard *.xml)
-
-include ../Makefile.inc