Mercurial > mplayer.hg
annotate DOCS/xml/Makefile @ 15126:6555c01128b7
Support syntax checking only
author | wight |
---|---|
date | Mon, 11 Apr 2005 20:14:08 +0000 |
parents | 04a5b6407cb6 |
children | 58c628554a33 |
rev | line source |
---|---|
9674 | 1 # Makefile for generating the HTML documentation |
2 | |
3 # List of subdirectories to be processed. | |
14393 | 4 SUBDIRS = en es fr hu pl ru cs |
9674 | 5 |
11200
eae346fd3769
Big consistency overhaul, targets and variables renamed to *-single and
diego
parents:
11188
diff
changeset
|
6 # Generated chunked HTML files go here. |
eae346fd3769
Big consistency overhaul, targets and variables renamed to *-single and
diego
parents:
11188
diff
changeset
|
7 HTML_CHUNKED = ../HTML |
9759 | 8 |
11200
eae346fd3769
Big consistency overhaul, targets and variables renamed to *-single and
diego
parents:
11188
diff
changeset
|
9 # Generated single HTML files go here. |
eae346fd3769
Big consistency overhaul, targets and variables renamed to *-single and
diego
parents:
11188
diff
changeset
|
10 HTML_SINGLE = ../HTML-single |
9674 | 11 |
10309
3c0e1b182fbc
XML autoconfiguration by Dmitry Baryshkov <lumag@qnc.ru> with some
diego
parents:
10110
diff
changeset
|
12 .PHONY: all |
11818 | 13 all: html-chunked html-single |
9674 | 14 |
10309
3c0e1b182fbc
XML autoconfiguration by Dmitry Baryshkov <lumag@qnc.ru> with some
diego
parents:
10110
diff
changeset
|
15 .PHONY: help |
3c0e1b182fbc
XML autoconfiguration by Dmitry Baryshkov <lumag@qnc.ru> with some
diego
parents:
10110
diff
changeset
|
16 help: |
3c0e1b182fbc
XML autoconfiguration by Dmitry Baryshkov <lumag@qnc.ru> with some
diego
parents:
10110
diff
changeset
|
17 @echo "Targets:" |
3c0e1b182fbc
XML autoconfiguration by Dmitry Baryshkov <lumag@qnc.ru> with some
diego
parents:
10110
diff
changeset
|
18 @echo "********" |
11200
eae346fd3769
Big consistency overhaul, targets and variables renamed to *-single and
diego
parents:
11188
diff
changeset
|
19 @echo "all : Build everything (default)." |
11818 | 20 @echo "html-single : Build HTML documentation (single file)." |
11883
51e14a023339
Structure rewritten, to allow single language build and some simplifications.
wight
parents:
11841
diff
changeset
|
21 @echo "html-single-LANG : As above, but only one language." |
11818 | 22 @echo "html-chunked : Build HTML documentation (multiple files)." |
11883
51e14a023339
Structure rewritten, to allow single language build and some simplifications.
wight
parents:
11841
diff
changeset
|
23 @echo "html-chunked-LANG : As above, but only one language." |
15126 | 24 @echo "xmllint : Check syntax of all xml files." |
25 @echo "xmlling-LANG : Check syntax of LANG xml files." | |
11200
eae346fd3769
Big consistency overhaul, targets and variables renamed to *-single and
diego
parents:
11188
diff
changeset
|
26 @echo "clean-html-single : Purge the 'HTML-single' directory." |
11188
6dfed0b2a300
Add support for building all-in-one HTML docs. (Files go to DOCS/HTML-single)
lumag
parents:
11130
diff
changeset
|
27 @echo "clean-html-chunked: Purge the 'HTML' directory." |
11206
e7534574320c
html.xsl ---> html-single.xsl + more consistency + small fixes
diego
parents:
11200
diff
changeset
|
28 @echo "clean : Purge the 'HTML' and 'HTML-single' directories." |
15101
04a5b6407cb6
Add releaseclean target to remove generated files but keep the HTML.
diego
parents:
14393
diff
changeset
|
29 @echo "releaseclean : Remove generated files but keep the HTML." |
11188
6dfed0b2a300
Add support for building all-in-one HTML docs. (Files go to DOCS/HTML-single)
lumag
parents:
11130
diff
changeset
|
30 @echo "distclean : Remove ALL generated files." |
11883
51e14a023339
Structure rewritten, to allow single language build and some simplifications.
wight
parents:
11841
diff
changeset
|
31 @echo "distclean-LANG : Remove ALL generated files for one language." |
51e14a023339
Structure rewritten, to allow single language build and some simplifications.
wight
parents:
11841
diff
changeset
|
32 @echo "Substitute LANG for one of $(SUBDIRS)" |
9674 | 33 |
11883
51e14a023339
Structure rewritten, to allow single language build and some simplifications.
wight
parents:
11841
diff
changeset
|
34 .PHONY: html-chunked chunked-dir |
51e14a023339
Structure rewritten, to allow single language build and some simplifications.
wight
parents:
11841
diff
changeset
|
35 html-chunked: xsltproc.sh xmllint.sh chunked-dir $(addprefix html-chunked-,$(SUBDIRS)) |
51e14a023339
Structure rewritten, to allow single language build and some simplifications.
wight
parents:
11841
diff
changeset
|
36 chunked-dir: |
11841 | 37 test -d $(HTML_CHUNKED) || mkdir $(HTML_CHUNKED) |
9674 | 38 |
11883
51e14a023339
Structure rewritten, to allow single language build and some simplifications.
wight
parents:
11841
diff
changeset
|
39 .PHONY: html-single single-dir |
51e14a023339
Structure rewritten, to allow single language build and some simplifications.
wight
parents:
11841
diff
changeset
|
40 html-single: xsltproc.sh xmllint.sh single-dir $(addprefix html-single-,$(SUBDIRS)) |
51e14a023339
Structure rewritten, to allow single language build and some simplifications.
wight
parents:
11841
diff
changeset
|
41 single-dir: |
11841 | 42 test -d $(HTML_SINGLE) || mkdir $(HTML_SINGLE) |
11188
6dfed0b2a300
Add support for building all-in-one HTML docs. (Files go to DOCS/HTML-single)
lumag
parents:
11130
diff
changeset
|
43 |
15126 | 44 .PHONY: xmllint |
45 xmllint: xmllint.sh $(addprefix xmllint-,$(SUBDIRS)) | |
46 | |
11188
6dfed0b2a300
Add support for building all-in-one HTML docs. (Files go to DOCS/HTML-single)
lumag
parents:
11130
diff
changeset
|
47 .PHONY: clean-html-chunked |
11200
eae346fd3769
Big consistency overhaul, targets and variables renamed to *-single and
diego
parents:
11188
diff
changeset
|
48 clean-html-chunked: |
11841 | 49 -rm -rf $(HTML_CHUNKED) |
11188
6dfed0b2a300
Add support for building all-in-one HTML docs. (Files go to DOCS/HTML-single)
lumag
parents:
11130
diff
changeset
|
50 |
11200
eae346fd3769
Big consistency overhaul, targets and variables renamed to *-single and
diego
parents:
11188
diff
changeset
|
51 .PHONY: clean-html-single |
eae346fd3769
Big consistency overhaul, targets and variables renamed to *-single and
diego
parents:
11188
diff
changeset
|
52 clean-html-single: |
11841 | 53 -rm -rf $(HTML_SINGLE) |
9674 | 54 |
15126 | 55 .PHONY: releaseclean distclean clean |
15101
04a5b6407cb6
Add releaseclean target to remove generated files but keep the HTML.
diego
parents:
14393
diff
changeset
|
56 releaseclean: $(addprefix distclean-,$(SUBDIRS)) |
11841 | 57 -rm -f html-chunk.xsl html-single.xsl xsltproc.sh xmllint.sh |
10309
3c0e1b182fbc
XML autoconfiguration by Dmitry Baryshkov <lumag@qnc.ru> with some
diego
parents:
10110
diff
changeset
|
58 |
15101
04a5b6407cb6
Add releaseclean target to remove generated files but keep the HTML.
diego
parents:
14393
diff
changeset
|
59 distclean: clean releaseclean |
04a5b6407cb6
Add releaseclean target to remove generated files but keep the HTML.
diego
parents:
14393
diff
changeset
|
60 |
11326 | 61 xsltproc.sh xmllint.sh: |
11841 | 62 sh configure |
11063 | 63 |
11200
eae346fd3769
Big consistency overhaul, targets and variables renamed to *-single and
diego
parents:
11188
diff
changeset
|
64 clean: clean-html-chunked clean-html-single |
11883
51e14a023339
Structure rewritten, to allow single language build and some simplifications.
wight
parents:
11841
diff
changeset
|
65 |
51e14a023339
Structure rewritten, to allow single language build and some simplifications.
wight
parents:
11841
diff
changeset
|
66 define lang-def |
15126 | 67 .PHONY: html-chunked-$(1) html-single-$(1) xmllint-$(1) distclean-$(1) |
11883
51e14a023339
Structure rewritten, to allow single language build and some simplifications.
wight
parents:
11841
diff
changeset
|
68 html-chunked-$(1): xsltproc.sh xmllint.sh chunked-dir |
51e14a023339
Structure rewritten, to allow single language build and some simplifications.
wight
parents:
11841
diff
changeset
|
69 (test -d $(HTML_CHUNKED)/$(1) || mkdir $(HTML_CHUNKED)/$(1)) |
51e14a023339
Structure rewritten, to allow single language build and some simplifications.
wight
parents:
11841
diff
changeset
|
70 $(MAKE) HTMLDIR=../$(HTML_CHUNKED)/$(1) -C $(1) html-chunked |
51e14a023339
Structure rewritten, to allow single language build and some simplifications.
wight
parents:
11841
diff
changeset
|
71 |
51e14a023339
Structure rewritten, to allow single language build and some simplifications.
wight
parents:
11841
diff
changeset
|
72 html-single-$(1): xsltproc.sh xmllint.sh single-dir |
51e14a023339
Structure rewritten, to allow single language build and some simplifications.
wight
parents:
11841
diff
changeset
|
73 (test -d $(HTML_SINGLE)/$(1) || mkdir $(HTML_SINGLE)/$(1)) |
51e14a023339
Structure rewritten, to allow single language build and some simplifications.
wight
parents:
11841
diff
changeset
|
74 $(MAKE) HTMLFILE=../$(HTML_SINGLE)/$(1)/MPlayer.html -C $(1) html-single |
51e14a023339
Structure rewritten, to allow single language build and some simplifications.
wight
parents:
11841
diff
changeset
|
75 |
15126 | 76 xmllint-$(1): xmllint.sh |
77 $(MAKE) HTMLFILE=../$(HTML_SINGLE)/$(1)/MPlayer.html -C $(1) xmllint | |
78 | |
11883
51e14a023339
Structure rewritten, to allow single language build and some simplifications.
wight
parents:
11841
diff
changeset
|
79 distclean-$(1): |
51e14a023339
Structure rewritten, to allow single language build and some simplifications.
wight
parents:
11841
diff
changeset
|
80 -rm -rf $(HTML_SINGLE)/$(1) $(HTML_CHUNKED)/$(1) |
51e14a023339
Structure rewritten, to allow single language build and some simplifications.
wight
parents:
11841
diff
changeset
|
81 $(MAKE) HTMLDIR=../$(HTML_CHUNKED)/$(1) -C $(1) distclean |
51e14a023339
Structure rewritten, to allow single language build and some simplifications.
wight
parents:
11841
diff
changeset
|
82 endef |
51e14a023339
Structure rewritten, to allow single language build and some simplifications.
wight
parents:
11841
diff
changeset
|
83 |
51e14a023339
Structure rewritten, to allow single language build and some simplifications.
wight
parents:
11841
diff
changeset
|
84 $(foreach lang, $(SUBDIRS),$(eval $(call lang-def,$(lang)))) |