annotate DOCS/xml/Makefile @ 11326:23192e33fad5

Dependencies for autogenerated files added.
author diego
date Thu, 30 Oct 2003 12:10:09 +0000
parents e7534574320c
children bb3e24e796eb
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
9674
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
1 # Makefile for generating the HTML documentation
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
2
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
3 # List of subdirectories to be processed.
11130
c90317724a1d Also build Polish documentation.
diego
parents: 11063
diff changeset
4 SUBDIRS = en fr es ru pl
9674
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
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
56be5a7b02a2 Minor improvement: don't create empty dirs.
lumag
parents: 9674
diff changeset
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
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
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
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
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
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
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
11326
23192e33fad5 Dependencies for autogenerated files added.
diego
parents: 11206
diff changeset
28 build-html-chunked: xsltproc.sh xmllint.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
4dc3149f5b74 Support for building incomplete translations.
diego
parents: 10309
diff changeset
30 for dir in $(SUBDIRS); do\
4dc3149f5b74 Support for building incomplete translations.
diego
parents: 10309
diff changeset
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
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
34 done
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
35
11200
eae346fd3769 Big consistency overhaul, targets and variables renamed to *-single and
diego
parents: 11188
diff changeset
36 .PHONY: build-html-single
11326
23192e33fad5 Dependencies for autogenerated files added.
diego
parents: 11206
diff changeset
37 build-html-single: xsltproc.sh xmllint.sh
11200
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
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
52
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
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
4dc3149f5b74 Support for building incomplete translations.
diego
parents: 10309
diff changeset
55 for dir in $(SUBDIRS); do\
4dc3149f5b74 Support for building incomplete translations.
diego
parents: 10309
diff changeset
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
4dc3149f5b74 Support for building incomplete translations.
diego
parents: 10309
diff changeset
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
11326
23192e33fad5 Dependencies for autogenerated files added.
diego
parents: 11206
diff changeset
61 xsltproc.sh xmllint.sh:
23192e33fad5 Dependencies for autogenerated files added.
diego
parents: 11206
diff changeset
62 sh configure
11063
f44ee899fbf1 clean -> clean-html
gabucino
parents: 11052
diff changeset
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