summaryrefslogtreecommitdiffstats
path: root/DOCS/xml/Makefile.inc
blob: 1cf2dcfbbde590707b73aa517fdd7bc16491bc32 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#
# Makefile.inc for Makefiles in subdirectories.
#

# Dependency information.
$(HTMLDIR)/index.html $(HTMLDIR)/MPlayer.html: $(wildcard $(LANG)/*.xml)

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: $(LANG)/main.xml
	./xmllint.sh $<

$(HTMLDIR)/default.css:
	cp -f default.css $(@D)

$(HTMLDIR)/index.html: $(LANG)/main.xml $(CHUNK_XSL_DEPS) xmllint $(HTMLDIR)/default.css
	./xsltproc.sh $(HTMLDIR)/ $(HTML_CHUNK_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 $(LANG)/main.xml:
	sh configure

.PHONY: all html-chunked html-single xmllint