summaryrefslogtreecommitdiffstats
path: root/DOCS/xml/Makefile.inc
diff options
context:
space:
mode:
authordiego <diego@b3059339-0415-0410-9bf9-f77b7e298cf2>2010-05-10 23:39:16 +0000
committerdiego <diego@b3059339-0415-0410-9bf9-f77b7e298cf2>2010-05-10 23:39:16 +0000
commit23cdbb74faf0266a4d16f13e82c4d3caf584f97d (patch)
tree326cc8965ee3c3c27a5dcb8c5a9164fdb7e7179e /DOCS/xml/Makefile.inc
parenta7eab84efa71d85e5a68f76f76e141a20f3c38cc (diff)
downloadmpv-23cdbb74faf0266a4d16f13e82c4d3caf584f97d.tar.bz2
mpv-23cdbb74faf0266a4d16f13e82c4d3caf584f97d.tar.xz
Pass a language variable to submakes instead of reading subdirectory Makefiles.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@31152 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'DOCS/xml/Makefile.inc')
-rw-r--r--DOCS/xml/Makefile.inc29
1 files changed, 16 insertions, 13 deletions
diff --git a/DOCS/xml/Makefile.inc b/DOCS/xml/Makefile.inc
index 44e022d56c..1cf2dcfbbd 100644
--- a/DOCS/xml/Makefile.inc
+++ b/DOCS/xml/Makefile.inc
@@ -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