annotate DOCS/xml/Makefile @ 11045:4dc3149f5b74

Support for building incomplete translations. Patch by Dmitry Baryshkov <mitya@school.ioffe.ru>.
author diego
date Wed, 08 Oct 2003 02:00:59 +0000
parents 3c0e1b182fbc
children cdd9fb032ed2
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.
11045
4dc3149f5b74 Support for building incomplete translations.
diego
parents: 10309
diff changeset
4 SUBDIRS = en fr es ru
9674
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
5
10309
3c0e1b182fbc XML autoconfiguration by Dmitry Baryshkov <lumag@qnc.ru> with some
diego
parents: 10110
diff changeset
6 # Generated HTML files go here.
9759
56be5a7b02a2 Minor improvement: don't create empty dirs.
lumag
parents: 9674
diff changeset
7 HTML_TOP = ../HTML
56be5a7b02a2 Minor improvement: don't create empty dirs.
lumag
parents: 9674
diff changeset
8
9674
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
9
10309
3c0e1b182fbc XML autoconfiguration by Dmitry Baryshkov <lumag@qnc.ru> with some
diego
parents: 10110
diff changeset
10 .PHONY: all
3c0e1b182fbc XML autoconfiguration by Dmitry Baryshkov <lumag@qnc.ru> with some
diego
parents: 10110
diff changeset
11 all: build-html
9674
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
12
10309
3c0e1b182fbc XML autoconfiguration by Dmitry Baryshkov <lumag@qnc.ru> with some
diego
parents: 10110
diff changeset
13 .PHONY: help
3c0e1b182fbc XML autoconfiguration by Dmitry Baryshkov <lumag@qnc.ru> with some
diego
parents: 10110
diff changeset
14 help:
3c0e1b182fbc XML autoconfiguration by Dmitry Baryshkov <lumag@qnc.ru> with some
diego
parents: 10110
diff changeset
15 @echo "Targets:"
3c0e1b182fbc XML autoconfiguration by Dmitry Baryshkov <lumag@qnc.ru> with some
diego
parents: 10110
diff changeset
16 @echo "********"
9674
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
17 @echo "all : Build everything (same as build-html for now)."
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
18 @echo "build-html: Build HTML documentation."
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
19 @echo "clean-html: Purge the 'HTML' directory."
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
20 @echo "distclean : Remove ALL generated files."
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
21
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
22 .PHONY: build-html
10309
3c0e1b182fbc XML autoconfiguration by Dmitry Baryshkov <lumag@qnc.ru> with some
diego
parents: 10110
diff changeset
23 build-html: xsltproc.sh
9759
56be5a7b02a2 Minor improvement: don't create empty dirs.
lumag
parents: 9674
diff changeset
24 test -d $(HTML_TOP) || mkdir $(HTML_TOP)
11045
4dc3149f5b74 Support for building incomplete translations.
diego
parents: 10309
diff changeset
25 for dir in $(SUBDIRS); do\
4dc3149f5b74 Support for building incomplete translations.
diego
parents: 10309
diff changeset
26 test -f $$dir/Makefile &&\
4dc3149f5b74 Support for building incomplete translations.
diego
parents: 10309
diff changeset
27 (test -d $(HTML_TOP)/$$dir || mkdir $(HTML_TOP)/$$dir) &&\
4dc3149f5b74 Support for building incomplete translations.
diego
parents: 10309
diff changeset
28 if $(MAKE) HTMLDIR=../$(HTML_TOP)/$$dir -C $$dir; then :; else exit 1; fi;
9674
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
29 done
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
30
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
31 .PHONY: clean-html
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
32 clean-html:
9759
56be5a7b02a2 Minor improvement: don't create empty dirs.
lumag
parents: 9674
diff changeset
33 -rm -rf $(HTML_TOP)
9674
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
34
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
35 .PHONY: distclean
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
36 distclean: clean-html
11045
4dc3149f5b74 Support for building incomplete translations.
diego
parents: 10309
diff changeset
37 for dir in $(SUBDIRS); do\
4dc3149f5b74 Support for building incomplete translations.
diego
parents: 10309
diff changeset
38 test -f $$dir/Makefile &&\
4dc3149f5b74 Support for building incomplete translations.
diego
parents: 10309
diff changeset
39 if $(MAKE) HTMLDIR=../$(HTML_TOP)/$$dir -C $$dir distclean ; then :; else exit 1; fi;
4dc3149f5b74 Support for building incomplete translations.
diego
parents: 10309
diff changeset
40 done
10309
3c0e1b182fbc XML autoconfiguration by Dmitry Baryshkov <lumag@qnc.ru> with some
diego
parents: 10110
diff changeset
41 -rm -f html.xsl xsltproc.sh xmllint.sh
3c0e1b182fbc XML autoconfiguration by Dmitry Baryshkov <lumag@qnc.ru> with some
diego
parents: 10110
diff changeset
42
3c0e1b182fbc XML autoconfiguration by Dmitry Baryshkov <lumag@qnc.ru> with some
diego
parents: 10110
diff changeset
43 xsltproc.sh: configure
3c0e1b182fbc XML autoconfiguration by Dmitry Baryshkov <lumag@qnc.ru> with some
diego
parents: 10110
diff changeset
44 ./configure