Mercurial > mplayer.hg
annotate DOCS/xml/Makefile @ 11841:67550c3b21a5
Make the build system print everything it does.
author | diego |
---|---|
date | Sat, 24 Jan 2004 22:31:11 +0000 |
parents | c219c245aa50 |
children | 51e14a023339 |
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 |
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)." |
21 @echo "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 |
11818 | 27 .PHONY: html-chunked |
28 html-chunked: xsltproc.sh xmllint.sh | |
11841 | 29 test -d $(HTML_CHUNKED) || mkdir $(HTML_CHUNKED) |
30 for dir in $(SUBDIRS); do\ | |
11045 | 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 | |
11818 | 36 .PHONY: html-single |
37 html-single: xsltproc.sh xmllint.sh | |
11841 | 38 test -d $(HTML_SINGLE) || mkdir $(HTML_SINGLE) |
39 for dir in $(SUBDIRS); do\ | |
11188
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: |
11841 | 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: |
11841 | 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 |
11841 | 55 for dir in $(SUBDIRS); do\ |
11045 | 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 |
11841 | 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 |
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 |