Mercurial > mplayer.hg
comparison DOCS/xml/Makefile.inc @ 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 | 783f8faee539 |
children | b604051c30a3 |
comparison
equal
deleted
inserted
replaced
31094:7299c551a7cd | 31095:7a2ec1d564ce |
---|---|
1 # | 1 # |
2 # Makefile.inc for Makefiles in subdirectories. | 2 # Makefile.inc for Makefiles in subdirectories. |
3 # | 3 # |
4 | 4 |
5 HTML_CHUNK_XSL := ../html-chunk.xsl | 5 # Dependency information. |
6 CHUNK_XSL_DEPS := $(HTML_CHUNK_XSL) ../html-common.xsl | 6 $(HTMLDIR)/index.html $(HTMLDIR)/MPlayer.html: $(wildcard $(LANG)/*.xml) |
7 | 7 |
8 HTML_SINGLE_XSL := ../html-single.xsl | 8 HTML_CHUNK_XSL := html-chunk.xsl |
9 SINGLE_XSL_DEPS := $(HTML_SINGLE_XSL) ../html-common.xsl | 9 CHUNK_XSL_DEPS := $(HTML_CHUNK_XSL) html-common.xsl |
10 | |
11 HTML_SINGLE_XSL := html-single.xsl | |
12 SINGLE_XSL_DEPS := $(HTML_SINGLE_XSL) html-common.xsl | |
10 | 13 |
11 # This is the main target... | 14 # This is the main target... |
12 all: html-chunked html-single | 15 all: html-chunked html-single |
13 html-chunked: $(HTMLDIR)/index.html | 16 html-chunked: $(HTMLDIR)/index.html |
14 html-single: $(HTMLDIR)/MPlayer.html | 17 html-single: $(HTMLDIR)/MPlayer.html |
15 | 18 |
16 xmllint: main.xml | 19 xmllint: $(LANG)/main.xml |
17 ../xmllint.sh $< | 20 ./xmllint.sh $< |
18 | 21 |
19 $(HTMLDIR)/default.css: | 22 $(HTMLDIR)/default.css: |
20 cp -f ../default.css $(@D) | 23 cp -f default.css $(@D) |
21 | 24 |
22 $(HTMLDIR)/index.html: main.xml $(CHUNK_XSL_DEPS) xmllint $(HTMLDIR)/default.css | 25 $(HTMLDIR)/index.html: $(LANG)/main.xml $(CHUNK_XSL_DEPS) xmllint $(HTMLDIR)/default.css |
23 ../xsltproc.sh $(HTMLDIR)/ $(HTML_CHUNK_XSL) $< | 26 ./xsltproc.sh $(HTMLDIR)/ $(HTML_CHUNK_XSL) $< |
24 | 27 |
25 $(HTMLDIR)/MPlayer.html: main.xml $(SINGLE_XSL_DEPS) xmllint $(HTMLDIR)/default.css | 28 $(HTMLDIR)/MPlayer.html: $(LANG)/main.xml $(SINGLE_XSL_DEPS) xmllint $(HTMLDIR)/default.css |
26 ../xsltproc.sh $@ $(HTML_SINGLE_XSL) $< | 29 ./xsltproc.sh $@ $(HTML_SINGLE_XSL) $< |
27 | 30 |
28 ../html-chunk.xsl ../html-single.xsl main.xml: | 31 html-chunk.xsl html-single.xsl $(LANG)/main.xml: |
29 cd .. && sh configure | 32 sh configure |
30 | 33 |
31 .PHONY: all html-chunked html-single xmllint | 34 .PHONY: all html-chunked html-single xmllint |