Sync with latest FFmpeg changes.
[mplayer/glamo.git] / DOCS / xml / Makefile
blob7a90938aefead513e82826c72e348401cfdd729a
1 # Makefile for generating the HTML documentation
3 include ../../config.mak
5 # Generated chunked HTML files go here.
6 HTML_CHUNKED = ../HTML
8 # Generated single HTML files go here.
9 HTML_SINGLE = ../HTML-single
11 all: html-chunked html-single
13 help:
14 @echo "Targets:"
15 @echo "********"
16 @echo "all : Build everything for configured languages (default)."
17 @echo "html-single : HTML documentation for configured languages (single file)"
18 @echo "html-single-LANG : As above, but only one language."
19 @echo "html-chunked : HTML documentation for configured languages (multiple files)"
20 @echo "html-chunked-LANG : As above, but only one language."
21 @echo "xmllint : Check syntax of all xml files."
22 @echo "xmllint-LANG : Check syntax of LANG xml files."
23 @echo "clean : Purge the 'HTML' and 'HTML-single' directories."
24 @echo "releaseclean : Remove generated files but keep the HTML."
25 @echo "distclean : Remove ALL generated files."
26 @echo "Substitute LANG for one of $(DOC_LANG_ALL)"
28 html-chunked: xsltproc.sh xmllint.sh $(HTML_CHUNKED) $(addprefix html-chunked-,$(DOC_LANGS))
30 html-single: xsltproc.sh xmllint.sh $(HTML_SINGLE) $(addprefix html-single-,$(DOC_LANGS))
32 xmllint: xmllint.sh $(addprefix xmllint-,$(DOC_LANG_ALL))
34 $(HTML_CHUNKED) $(HTML_SINGLE):
35 -mkdir -p $@
37 xsltproc.sh xmllint.sh:
38 sh configure
40 define lang-def
41 html-chunked-$(1): xsltproc.sh xmllint.sh $(HTML_CHUNKED)
42 -mkdir -p $(HTML_CHUNKED)/$(1)
43 $(MAKE) HTMLDIR=../$(HTML_CHUNKED)/$(1) -C $(1) html-chunked
45 html-single-$(1): xsltproc.sh xmllint.sh $(HTML_SINGLE)
46 -mkdir -p $(HTML_SINGLE)/$(1)
47 $(MAKE) HTMLFILE=../$(HTML_SINGLE)/$(1)/MPlayer.html -C $(1) html-single
49 xmllint-$(1): xmllint.sh
50 $(MAKE) HTMLFILE=../$(HTML_SINGLE)/$(1)/MPlayer.html -C $(1) xmllint
51 endef
53 $(foreach lang, $(DOC_LANG_ALL),$(eval $(call lang-def,$(lang))))
55 clean:
56 rm -rf $(HTML_CHUNKED) $(HTML_SINGLE)
58 releaseclean:
59 rm -f $(foreach lang,$(DOC_LANG_ALL),$(lang)/main.xml)
60 rm -f $$(find . -name *.xml -type l)
61 rm -f html-chunk.xsl html-single.xsl xsltproc.sh xmllint.sh
63 distclean: clean releaseclean
65 .PHONY: all help html-chunked* html-single* xmllint* *clean*