Mercurial > mplayer.hg
annotate DOCS/xml/Makefile @ 28220:e8a6bde9ef9e
cosmetics: Move clean targets to the bottom.
author | diego |
---|---|
date | Mon, 05 Jan 2009 00:01:55 +0000 |
parents | e472851cff19 |
children | ded986da716f |
rev | line source |
---|---|
9674 | 1 # Makefile for generating the HTML documentation |
2 | |
27296
a316bc1ea84d
Only build the documentation in the languages requested from configure.
diego
parents:
23492
diff
changeset
|
3 include ../../config.mak |
9674 | 4 |
11200
eae346fd3769
Big consistency overhaul, targets and variables renamed to *-single and
diego
parents:
11188
diff
changeset
|
5 # Generated chunked HTML files go here. |
eae346fd3769
Big consistency overhaul, targets and variables renamed to *-single and
diego
parents:
11188
diff
changeset
|
6 HTML_CHUNKED = ../HTML |
9759 | 7 |
11200
eae346fd3769
Big consistency overhaul, targets and variables renamed to *-single and
diego
parents:
11188
diff
changeset
|
8 # Generated single HTML files go here. |
eae346fd3769
Big consistency overhaul, targets and variables renamed to *-single and
diego
parents:
11188
diff
changeset
|
9 HTML_SINGLE = ../HTML-single |
9674 | 10 |
11818 | 11 all: html-chunked html-single |
9674 | 12 |
10309
3c0e1b182fbc
XML autoconfiguration by Dmitry Baryshkov <lumag@qnc.ru> with some
diego
parents:
10110
diff
changeset
|
13 help: |
3c0e1b182fbc
XML autoconfiguration by Dmitry Baryshkov <lumag@qnc.ru> with some
diego
parents:
10110
diff
changeset
|
14 @echo "Targets:" |
3c0e1b182fbc
XML autoconfiguration by Dmitry Baryshkov <lumag@qnc.ru> with some
diego
parents:
10110
diff
changeset
|
15 @echo "********" |
27296
a316bc1ea84d
Only build the documentation in the languages requested from configure.
diego
parents:
23492
diff
changeset
|
16 @echo "all : Build everything for configured languages (default)." |
a316bc1ea84d
Only build the documentation in the languages requested from configure.
diego
parents:
23492
diff
changeset
|
17 @echo "html-single : HTML documentation for configured languages (single file)" |
11883
51e14a023339
Structure rewritten, to allow single language build and some simplifications.
wight
parents:
11841
diff
changeset
|
18 @echo "html-single-LANG : As above, but only one language." |
27296
a316bc1ea84d
Only build the documentation in the languages requested from configure.
diego
parents:
23492
diff
changeset
|
19 @echo "html-chunked : HTML documentation for configured languages (multiple files)" |
11883
51e14a023339
Structure rewritten, to allow single language build and some simplifications.
wight
parents:
11841
diff
changeset
|
20 @echo "html-chunked-LANG : As above, but only one language." |
15126 | 21 @echo "xmllint : Check syntax of all xml files." |
15135 | 22 @echo "xmllint-LANG : Check syntax of LANG xml files." |
11206
e7534574320c
html.xsl ---> html-single.xsl + more consistency + small fixes
diego
parents:
11200
diff
changeset
|
23 @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
|
24 @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
|
25 @echo "distclean : Remove ALL generated files." |
15171
c047b2d7f7ce
releaseclean should now work as expected, crate of Coke going in my direction.
diego
parents:
15135
diff
changeset
|
26 @echo "releaseclean-LANG : Remove generated files for one language." |
27296
a316bc1ea84d
Only build the documentation in the languages requested from configure.
diego
parents:
23492
diff
changeset
|
27 @echo "Substitute LANG for one of $(DOC_LANG_ALL)" |
9674 | 28 |
28216
119286d52a9a
Get rid of pointless chunked-dir and single-dir targets.
diego
parents:
28215
diff
changeset
|
29 html-chunked: xsltproc.sh xmllint.sh $(HTML_CHUNKED) $(addprefix html-chunked-,$(DOC_LANGS)) |
9674 | 30 |
28216
119286d52a9a
Get rid of pointless chunked-dir and single-dir targets.
diego
parents:
28215
diff
changeset
|
31 html-single: xsltproc.sh xmllint.sh $(HTML_SINGLE) $(addprefix html-single-,$(DOC_LANGS)) |
11188
6dfed0b2a300
Add support for building all-in-one HTML docs. (Files go to DOCS/HTML-single)
lumag
parents:
11130
diff
changeset
|
32 |
27296
a316bc1ea84d
Only build the documentation in the languages requested from configure.
diego
parents:
23492
diff
changeset
|
33 xmllint: xmllint.sh $(addprefix xmllint-,$(DOC_LANG_ALL)) |
15126 | 34 |
28216
119286d52a9a
Get rid of pointless chunked-dir and single-dir targets.
diego
parents:
28215
diff
changeset
|
35 $(HTML_CHUNKED) $(HTML_SINGLE): |
119286d52a9a
Get rid of pointless chunked-dir and single-dir targets.
diego
parents:
28215
diff
changeset
|
36 -mkdir -p $@ |
119286d52a9a
Get rid of pointless chunked-dir and single-dir targets.
diego
parents:
28215
diff
changeset
|
37 |
11326 | 38 xsltproc.sh xmllint.sh: |
11841 | 39 sh configure |
11063 | 40 |
11883
51e14a023339
Structure rewritten, to allow single language build and some simplifications.
wight
parents:
11841
diff
changeset
|
41 define lang-def |
28216
119286d52a9a
Get rid of pointless chunked-dir and single-dir targets.
diego
parents:
28215
diff
changeset
|
42 html-chunked-$(1): xsltproc.sh xmllint.sh $(HTML_CHUNKED) |
20366 | 43 -(mkdir -p $(HTML_CHUNKED)/$(1)) |
11883
51e14a023339
Structure rewritten, to allow single language build and some simplifications.
wight
parents:
11841
diff
changeset
|
44 $(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
|
45 |
28216
119286d52a9a
Get rid of pointless chunked-dir and single-dir targets.
diego
parents:
28215
diff
changeset
|
46 html-single-$(1): xsltproc.sh xmllint.sh $(HTML_SINGLE) |
20366 | 47 -(mkdir -p $(HTML_SINGLE)/$(1)) |
11883
51e14a023339
Structure rewritten, to allow single language build and some simplifications.
wight
parents:
11841
diff
changeset
|
48 $(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
|
49 |
15126 | 50 xmllint-$(1): xmllint.sh |
51 $(MAKE) HTMLFILE=../$(HTML_SINGLE)/$(1)/MPlayer.html -C $(1) xmllint | |
52 | |
15171
c047b2d7f7ce
releaseclean should now work as expected, crate of Coke going in my direction.
diego
parents:
15135
diff
changeset
|
53 releaseclean-$(1): |
11883
51e14a023339
Structure rewritten, to allow single language build and some simplifications.
wight
parents:
11841
diff
changeset
|
54 $(MAKE) HTMLDIR=../$(HTML_CHUNKED)/$(1) -C $(1) distclean |
51e14a023339
Structure rewritten, to allow single language build and some simplifications.
wight
parents:
11841
diff
changeset
|
55 endef |
51e14a023339
Structure rewritten, to allow single language build and some simplifications.
wight
parents:
11841
diff
changeset
|
56 |
27296
a316bc1ea84d
Only build the documentation in the languages requested from configure.
diego
parents:
23492
diff
changeset
|
57 $(foreach lang, $(DOC_LANG_ALL),$(eval $(call lang-def,$(lang)))) |
22467 | 58 |
28220 | 59 clean: |
60 rm -rf $(HTML_CHUNKED) $(HTML_SINGLE) | |
61 | |
62 releaseclean: $(addprefix releaseclean-,$(DOC_LANG_ALL)) | |
63 -rm -f html-chunk.xsl html-single.xsl xsltproc.sh xmllint.sh | |
64 | |
65 distclean: clean releaseclean | |
66 | |
28216
119286d52a9a
Get rid of pointless chunked-dir and single-dir targets.
diego
parents:
28215
diff
changeset
|
67 .PHONY: all help html-chunked* html-single* xmllint* *clean* |