Mercurial > mplayer.hg
comparison DOCS/xml/Makefile @ 27296:a316bc1ea84d
Only build the documentation in the languages requested from configure.
Fixes Bugzilla #978.
inspired by a patch from Jonas Berlin, bugs outerspace.dyndns org
author | diego |
---|---|
date | Sat, 19 Jul 2008 02:00:56 +0000 |
parents | 2f3c7788aac4 |
children | 8c9029514722 |
comparison
equal
deleted
inserted
replaced
27295:04655a6c01d4 | 27296:a316bc1ea84d |
---|---|
1 # Makefile for generating the HTML documentation | 1 # Makefile for generating the HTML documentation |
2 | 2 |
3 # List of subdirectories to be processed. | 3 include ../../config.mak |
4 SUBDIRS = en es fr hu it pl cs de ru zh_CN | |
5 | 4 |
6 # Generated chunked HTML files go here. | 5 # Generated chunked HTML files go here. |
7 HTML_CHUNKED = ../HTML | 6 HTML_CHUNKED = ../HTML |
8 | 7 |
9 # Generated single HTML files go here. | 8 # Generated single HTML files go here. |
12 all: html-chunked html-single | 11 all: html-chunked html-single |
13 | 12 |
14 help: | 13 help: |
15 @echo "Targets:" | 14 @echo "Targets:" |
16 @echo "********" | 15 @echo "********" |
17 @echo "all : Build everything (default)." | 16 @echo "all : Build everything for configured languages (default)." |
18 @echo "html-single : Build HTML documentation (single file)." | 17 @echo "html-single : HTML documentation for configured languages (single file)" |
19 @echo "html-single-LANG : As above, but only one language." | 18 @echo "html-single-LANG : As above, but only one language." |
20 @echo "html-chunked : Build HTML documentation (multiple files)." | 19 @echo "html-chunked : HTML documentation for configured languages (multiple files)" |
21 @echo "html-chunked-LANG : As above, but only one language." | 20 @echo "html-chunked-LANG : As above, but only one language." |
22 @echo "xmllint : Check syntax of all xml files." | 21 @echo "xmllint : Check syntax of all xml files." |
23 @echo "xmllint-LANG : Check syntax of LANG xml files." | 22 @echo "xmllint-LANG : Check syntax of LANG xml files." |
24 @echo "clean-html-single : Purge the 'HTML-single' directory." | 23 @echo "clean-html-single : Purge the 'HTML-single' directory." |
25 @echo "clean-html-chunked: Purge the 'HTML' directory." | 24 @echo "clean-html-chunked: Purge the 'HTML' directory." |
27 @echo "releaseclean : Remove generated files but keep the HTML." | 26 @echo "releaseclean : Remove generated files but keep the HTML." |
28 @echo "distclean : Remove ALL generated files." | 27 @echo "distclean : Remove ALL generated files." |
29 @echo "clean-LANG : Remove HTML files for one language." | 28 @echo "clean-LANG : Remove HTML files for one language." |
30 @echo "releaseclean-LANG : Remove generated files for one language." | 29 @echo "releaseclean-LANG : Remove generated files for one language." |
31 @echo "distclean-LANG : Remove ALL generated files for one language." | 30 @echo "distclean-LANG : Remove ALL generated files for one language." |
32 @echo "Substitute LANG for one of $(SUBDIRS)" | 31 @echo "Substitute LANG for one of $(DOC_LANG_ALL)" |
33 | 32 |
34 html-chunked: xsltproc.sh xmllint.sh chunked-dir $(addprefix html-chunked-,$(SUBDIRS)) | 33 html-chunked: xsltproc.sh xmllint.sh chunked-dir $(addprefix html-chunked-,$(DOC_LANGS)) |
35 chunked-dir: | 34 chunked-dir: |
36 -mkdir -p $(HTML_CHUNKED) | 35 -mkdir -p $(HTML_CHUNKED) |
37 | 36 |
38 html-single: xsltproc.sh xmllint.sh single-dir $(addprefix html-single-,$(SUBDIRS)) | 37 html-single: xsltproc.sh xmllint.sh single-dir $(addprefix html-single-,$(DOC_LANGS)) |
39 single-dir: | 38 single-dir: |
40 -mkdir -p $(HTML_SINGLE) | 39 -mkdir -p $(HTML_SINGLE) |
41 | 40 |
42 xmllint: xmllint.sh $(addprefix xmllint-,$(SUBDIRS)) | 41 xmllint: xmllint.sh $(addprefix xmllint-,$(DOC_LANG_ALL)) |
43 | 42 |
44 clean-html-chunked: | 43 clean-html-chunked: |
45 -rm -rf $(HTML_CHUNKED) | 44 -rm -rf $(HTML_CHUNKED) |
46 | 45 |
47 clean-html-single: | 46 clean-html-single: |
48 -rm -rf $(HTML_SINGLE) | 47 -rm -rf $(HTML_SINGLE) |
49 | 48 |
50 releaseclean: $(addprefix releaseclean-,$(SUBDIRS)) | 49 releaseclean: $(addprefix releaseclean-,$(DOC_LANG_ALL)) |
51 -rm -f html-chunk.xsl html-single.xsl xsltproc.sh xmllint.sh | 50 -rm -f html-chunk.xsl html-single.xsl xsltproc.sh xmllint.sh |
52 | 51 |
53 distclean: clean releaseclean | 52 distclean: clean releaseclean |
54 | 53 |
55 xsltproc.sh xmllint.sh: | 54 xsltproc.sh xmllint.sh: |
76 | 75 |
77 releaseclean-$(1): | 76 releaseclean-$(1): |
78 $(MAKE) HTMLDIR=../$(HTML_CHUNKED)/$(1) -C $(1) distclean | 77 $(MAKE) HTMLDIR=../$(HTML_CHUNKED)/$(1) -C $(1) distclean |
79 endef | 78 endef |
80 | 79 |
81 $(foreach lang, $(SUBDIRS),$(eval $(call lang-def,$(lang)))) | 80 $(foreach lang, $(DOC_LANG_ALL),$(eval $(call lang-def,$(lang)))) |
82 | 81 |
83 .PHONY: all help html-chunked* chunked-dir html-single* single-dir xmllint* | 82 .PHONY: all help html-chunked* chunked-dir html-single* single-dir xmllint* |
84 .PHONY: clean-html-chunked clean-html-single releaseclean* distclean* clean* | 83 .PHONY: clean-html-chunked clean-html-single releaseclean* distclean* clean* |