annotate DOCS/xml/Makefile @ 10309:3c0e1b182fbc

XML autoconfiguration by Dmitry Baryshkov <lumag@qnc.ru> with some modifications and improvements by me.
author diego
date Wed, 18 Jun 2003 17:37:36 +0000
parents 0768c63a7bd3
children 4dc3149f5b74
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.
10110
0768c63a7bd3 fr version added
nicolas
parents: 10025
diff changeset
4 SUBDIRS = en fr
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)
9674
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
25 for d in $(SUBDIRS); do\
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
26 test -f $$d/Makefile &&\
9759
56be5a7b02a2 Minor improvement: don't create empty dirs.
lumag
parents: 9674
diff changeset
27 (test -d $(HTML_TOP)/$$d || mkdir $(HTML_TOP)/$$d) &&\
56be5a7b02a2 Minor improvement: don't create empty dirs.
lumag
parents: 9674
diff changeset
28 if $(MAKE) HTMLDIR=../$(HTML_TOP)/$$d -C $$d; 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
10309
3c0e1b182fbc XML autoconfiguration by Dmitry Baryshkov <lumag@qnc.ru> with some
diego
parents: 10110
diff changeset
37 -rm -f html.xsl xsltproc.sh xmllint.sh
3c0e1b182fbc XML autoconfiguration by Dmitry Baryshkov <lumag@qnc.ru> with some
diego
parents: 10110
diff changeset
38
3c0e1b182fbc XML autoconfiguration by Dmitry Baryshkov <lumag@qnc.ru> with some
diego
parents: 10110
diff changeset
39 xsltproc.sh: configure
3c0e1b182fbc XML autoconfiguration by Dmitry Baryshkov <lumag@qnc.ru> with some
diego
parents: 10110
diff changeset
40 ./configure