Mercurial > mplayer.hg
annotate DOCS/xml/Makefile @ 11206:e7534574320c
html.xsl ---> html-single.xsl + more consistency + small fixes
author | diego |
---|---|
date | Tue, 21 Oct 2003 11:07:02 +0000 |
parents | eae346fd3769 |
children | 23192e33fad5 |
rev | line source |
---|---|
9674 | 1 # Makefile for generating the HTML documentation |
2 | |
3 # List of subdirectories to be processed. | |
11130 | 4 SUBDIRS = en fr es ru pl |
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 |
11200
eae346fd3769
Big consistency overhaul, targets and variables renamed to *-single and
diego
parents:
11188
diff
changeset
|
13 all: build-html-chunked build-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)." |
eae346fd3769
Big consistency overhaul, targets and variables renamed to *-single and
diego
parents:
11188
diff
changeset
|
20 @echo "build-html-single : Build HTML documentation (single file)." |
11188
6dfed0b2a300
Add support for building all-in-one HTML docs. (Files go to DOCS/HTML-single)
lumag
parents:
11130
diff
changeset
|
21 @echo "build-html-chunked: Build HTML documentation (multiple files)." |
11200
eae346fd3769
Big consistency overhaul, targets and variables renamed to *-single and
diego
parents:
11188
diff
changeset
|
22 @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
|
23 @echo "clean-html-chunked: Purge the 'HTML' directory." |
11206
e7534574320c
html.xsl ---> html-single.xsl + more consistency + small fixes
diego
parents:
11200
diff
changeset
|
24 @echo "clean : Purge the 'HTML' and 'HTML-single' directories." |
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." |
9674 | 26 |
11188
6dfed0b2a300
Add support for building all-in-one HTML docs. (Files go to DOCS/HTML-single)
lumag
parents:
11130
diff
changeset
|
27 .PHONY: build-html-chunked |
6dfed0b2a300
Add support for building all-in-one HTML docs. (Files go to DOCS/HTML-single)
lumag
parents:
11130
diff
changeset
|
28 build-html-chunked: xsltproc.sh |
11200
eae346fd3769
Big consistency overhaul, targets and variables renamed to *-single and
diego
parents:
11188
diff
changeset
|
29 test -d $(HTML_CHUNKED) || mkdir $(HTML_CHUNKED) |
11045 | 30 for dir in $(SUBDIRS); do\ |
31 test -f $$dir/Makefile &&\ | |
11200
eae346fd3769
Big consistency overhaul, targets and variables renamed to *-single and
diego
parents:
11188
diff
changeset
|
32 (test -d $(HTML_CHUNKED)/$$dir || mkdir $(HTML_CHUNKED)/$$dir) &&\ |
eae346fd3769
Big consistency overhaul, targets and variables renamed to *-single and
diego
parents:
11188
diff
changeset
|
33 if $(MAKE) HTMLDIR=../$(HTML_CHUNKED)/$$dir -C $$dir html-chunked; then :; else exit 1; fi;\ |
9674 | 34 done |
35 | |
11200
eae346fd3769
Big consistency overhaul, targets and variables renamed to *-single and
diego
parents:
11188
diff
changeset
|
36 .PHONY: build-html-single |
eae346fd3769
Big consistency overhaul, targets and variables renamed to *-single and
diego
parents:
11188
diff
changeset
|
37 build-html-single: xsltproc.sh |
eae346fd3769
Big consistency overhaul, targets and variables renamed to *-single and
diego
parents:
11188
diff
changeset
|
38 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
|
39 for dir in $(SUBDIRS); do\ |
6dfed0b2a300
Add support for building all-in-one HTML docs. (Files go to DOCS/HTML-single)
lumag
parents:
11130
diff
changeset
|
40 test -f $$dir/Makefile &&\ |
11200
eae346fd3769
Big consistency overhaul, targets and variables renamed to *-single and
diego
parents:
11188
diff
changeset
|
41 (test -d $(HTML_SINGLE)/$$dir || mkdir $(HTML_SINGLE)/$$dir) &&\ |
11206
e7534574320c
html.xsl ---> html-single.xsl + more consistency + small fixes
diego
parents:
11200
diff
changeset
|
42 if $(MAKE) HTMLFILE=../$(HTML_SINGLE)/$$dir/MPlayer.html -C $$dir html-single; then :; else exit 1; fi;\ |
11188
6dfed0b2a300
Add support for building all-in-one HTML docs. (Files go to DOCS/HTML-single)
lumag
parents:
11130
diff
changeset
|
43 done |
6dfed0b2a300
Add support for building all-in-one HTML docs. (Files go to DOCS/HTML-single)
lumag
parents:
11130
diff
changeset
|
44 |
6dfed0b2a300
Add support for building all-in-one HTML docs. (Files go to DOCS/HTML-single)
lumag
parents:
11130
diff
changeset
|
45 .PHONY: clean-html-chunked |
11200
eae346fd3769
Big consistency overhaul, targets and variables renamed to *-single and
diego
parents:
11188
diff
changeset
|
46 clean-html-chunked: |
eae346fd3769
Big consistency overhaul, targets and variables renamed to *-single and
diego
parents:
11188
diff
changeset
|
47 -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
|
48 |
11200
eae346fd3769
Big consistency overhaul, targets and variables renamed to *-single and
diego
parents:
11188
diff
changeset
|
49 .PHONY: clean-html-single |
eae346fd3769
Big consistency overhaul, targets and variables renamed to *-single and
diego
parents:
11188
diff
changeset
|
50 clean-html-single: |
eae346fd3769
Big consistency overhaul, targets and variables renamed to *-single and
diego
parents:
11188
diff
changeset
|
51 -rm -rf $(HTML_SINGLE) |
9674 | 52 |
53 .PHONY: distclean | |
11200
eae346fd3769
Big consistency overhaul, targets and variables renamed to *-single and
diego
parents:
11188
diff
changeset
|
54 distclean: clean-html-chunked clean-html-single |
11045 | 55 for dir in $(SUBDIRS); do\ |
56 test -f $$dir/Makefile &&\ | |
11200
eae346fd3769
Big consistency overhaul, targets and variables renamed to *-single and
diego
parents:
11188
diff
changeset
|
57 if $(MAKE) HTMLDIR=../$(HTML_CHUNKED)/$$dir -C $$dir distclean ; then :; else exit 1; fi;\ |
11045 | 58 done |
11206
e7534574320c
html.xsl ---> html-single.xsl + more consistency + small fixes
diego
parents:
11200
diff
changeset
|
59 -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
|
60 |
3c0e1b182fbc
XML autoconfiguration by Dmitry Baryshkov <lumag@qnc.ru> with some
diego
parents:
10110
diff
changeset
|
61 xsltproc.sh: configure |
3c0e1b182fbc
XML autoconfiguration by Dmitry Baryshkov <lumag@qnc.ru> with some
diego
parents:
10110
diff
changeset
|
62 ./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 |