annotate DOCS/xml/Makefile @ 11200:eae346fd3769

Big consistency overhaul, targets and variables renamed to *-single and *-chunked, single files now have subdir structure as well.
author diego
date Tue, 21 Oct 2003 01:36:00 +0000
parents 6dfed0b2a300
children e7534574320c
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."
6dfed0b2a300 Add support for building all-in-one HTML docs. (Files go to DOCS/HTML-single)
lumag
parents: 11130
diff changeset
24 @echo "distclean : Remove ALL generated files."
9674
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
25
11188
6dfed0b2a300 Add support for building all-in-one HTML docs. (Files go to DOCS/HTML-single)
lumag
parents: 11130
diff changeset
26 .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
27 build-html-chunked: xsltproc.sh
11200
eae346fd3769 Big consistency overhaul, targets and variables renamed to *-single and
diego
parents: 11188
diff changeset
28 test -d $(HTML_CHUNKED) || mkdir $(HTML_CHUNKED)
11045
4dc3149f5b74 Support for building incomplete translations.
diego
parents: 10309
diff changeset
29 for dir in $(SUBDIRS); do\
4dc3149f5b74 Support for building incomplete translations.
diego
parents: 10309
diff changeset
30 test -f $$dir/Makefile &&\
11200
eae346fd3769 Big consistency overhaul, targets and variables renamed to *-single and
diego
parents: 11188
diff changeset
31 (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
32 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
33 done
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
34
11200
eae346fd3769 Big consistency overhaul, targets and variables renamed to *-single and
diego
parents: 11188
diff changeset
35 .PHONY: build-html-single
eae346fd3769 Big consistency overhaul, targets and variables renamed to *-single and
diego
parents: 11188
diff changeset
36 build-html-single: xsltproc.sh
eae346fd3769 Big consistency overhaul, targets and variables renamed to *-single and
diego
parents: 11188
diff changeset
37 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
38 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
39 test -f $$dir/Makefile &&\
11200
eae346fd3769 Big consistency overhaul, targets and variables renamed to *-single and
diego
parents: 11188
diff changeset
40 (test -d $(HTML_SINGLE)/$$dir || mkdir $(HTML_SINGLE)/$$dir) &&\
eae346fd3769 Big consistency overhaul, targets and variables renamed to *-single and
diego
parents: 11188
diff changeset
41 if $(MAKE) HTMLFILE=../$(HTML_SINGLE)/$$dir/MPlayer.html -C $$dir html; 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
42 done
6dfed0b2a300 Add support for building all-in-one HTML docs. (Files go to DOCS/HTML-single)
lumag
parents: 11130
diff changeset
43
6dfed0b2a300 Add support for building all-in-one HTML docs. (Files go to DOCS/HTML-single)
lumag
parents: 11130
diff changeset
44 .PHONY: clean-html-chunked
11200
eae346fd3769 Big consistency overhaul, targets and variables renamed to *-single and
diego
parents: 11188
diff changeset
45 clean-html-chunked:
eae346fd3769 Big consistency overhaul, targets and variables renamed to *-single and
diego
parents: 11188
diff changeset
46 -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
47
11200
eae346fd3769 Big consistency overhaul, targets and variables renamed to *-single and
diego
parents: 11188
diff changeset
48 .PHONY: clean-html-single
eae346fd3769 Big consistency overhaul, targets and variables renamed to *-single and
diego
parents: 11188
diff changeset
49 clean-html-single:
eae346fd3769 Big consistency overhaul, targets and variables renamed to *-single and
diego
parents: 11188
diff changeset
50 -rm -rf $(HTML_SINGLE)
9674
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
51
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
52 .PHONY: distclean
11200
eae346fd3769 Big consistency overhaul, targets and variables renamed to *-single and
diego
parents: 11188
diff changeset
53 distclean: clean-html-chunked clean-html-single
11045
4dc3149f5b74 Support for building incomplete translations.
diego
parents: 10309
diff changeset
54 for dir in $(SUBDIRS); do\
4dc3149f5b74 Support for building incomplete translations.
diego
parents: 10309
diff changeset
55 test -f $$dir/Makefile &&\
11200
eae346fd3769 Big consistency overhaul, targets and variables renamed to *-single and
diego
parents: 11188
diff changeset
56 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
57 done
11188
6dfed0b2a300 Add support for building all-in-one HTML docs. (Files go to DOCS/HTML-single)
lumag
parents: 11130
diff changeset
58 -rm -f html.xsl html-chunk.xsl xsltproc.sh xmllint.sh
10309
3c0e1b182fbc XML autoconfiguration by Dmitry Baryshkov <lumag@qnc.ru> with some
diego
parents: 10110
diff changeset
59
3c0e1b182fbc XML autoconfiguration by Dmitry Baryshkov <lumag@qnc.ru> with some
diego
parents: 10110
diff changeset
60 xsltproc.sh: configure
3c0e1b182fbc XML autoconfiguration by Dmitry Baryshkov <lumag@qnc.ru> with some
diego
parents: 10110
diff changeset
61 ./configure
11063
f44ee899fbf1 clean -> clean-html
gabucino
parents: 11052
diff changeset
62
11200
eae346fd3769 Big consistency overhaul, targets and variables renamed to *-single and
diego
parents: 11188
diff changeset
63 clean: clean-html-chunked clean-html-single