Mercurial > mplayer.hg
comparison DOCS/xml/Makefile @ 9674:461f71ba8af4
XML version of MPlayer's doc
author | nicolas |
---|---|
date | Sun, 23 Mar 2003 23:26:55 +0000 |
parents | |
children | 56be5a7b02a2 |
comparison
equal
deleted
inserted
replaced
9673:4204e4523e4f | 9674:461f71ba8af4 |
---|---|
1 # Makefile for generating the HTML documentation | |
2 | |
3 #####[ Configuration ]################################################## | |
4 | |
5 # The xsltproc program. | |
6 XSLTPROC = xsltproc | |
7 | |
8 # The xmllint program. | |
9 XMLLINT = xmllint | |
10 | |
11 # A colon separated list of catalog entry files. | |
12 # Without this properly set up, xmllint and xsltproc might be unable | |
13 # to find the DTDs for the system identifiers specified in the XML files. | |
14 # If the SGML_CATALOG_FILES environment variable is not set, list one | |
15 # or more catalogs here. | |
16 # | |
17 # on debian (potato?) systems, maybe others | |
18 #SGML_CATALOG_FILES ?= /etc/sgml/catalog | |
19 # | |
20 # on Mandrake (9.0?) systems, maybe others | |
21 SGML_CATALOG_FILES ?= /usr/share/sgml/docbook/xml-dtd-4.1.2/xmlcatalog | |
22 #SGML_CATALOG_FILES ?= /usr/share/apps/ksgmltools2/customization/en/catalog | |
23 | |
24 # Full path of the "chunker" DocBook XSL stylesheet used to generate | |
25 # the HTML files. | |
26 # | |
27 # on debian (potato?) | |
28 #CHUNK_XSL = /usr/share/sgml/docbook/stylesheet/xsl/nwalsh/html/chunk.xsl | |
29 # | |
30 # on Mandrake (9.0?) systems, maybe others | |
31 CHUNK_XSL = /usr/share/sgml/docbook/yelp/docbook/html/chunk.xsl | |
32 | |
33 # List of subdirectories to be processed. | |
34 SUBDIRS = en | |
35 | |
36 #####[ End of configuration ]########################################### | |
37 | |
38 export CHUNK_XSL SGML_CATALOG_FILES XMLLINT XSLTPROC | |
39 | |
40 .PHONY: no-target | |
41 no-target: | |
42 @echo "What to make?" | |
43 @echo | |
44 @echo "Targets" | |
45 @echo "*******" | |
46 @echo "all : Build everything (same as build-html for now)." | |
47 @echo "build-html: Build HTML documentation." | |
48 @echo "clean-html: Purge the 'HTML' directory." | |
49 @echo "distclean : Remove ALL generated files." | |
50 | |
51 .PHONY: all | |
52 all: build-html | |
53 | |
54 .PHONY: build-html | |
55 build-html: | |
56 test -d HTML || mkdir HTML | |
57 for d in $(SUBDIRS); do\ | |
58 test -f $$d/Makefile &&\ | |
59 (test -d HTML/$$d || mkdir HTML/$$d) &&\ | |
60 if $(MAKE) HTMLDIR=../../HTML/$$d -C $$d; then :; else exit 1; fi;\ | |
61 done | |
62 | |
63 .PHONY: test | |
64 test: | |
65 @if command -v $(XSLTPROC) >/dev/null; then :; else exit 1; fi | |
66 @if command -v $(XMLLINT) >/dev/null; then :; else exit 1; fi | |
67 @test -f $(CHUNK_XSL) || (echo "file not found: $(CHUNK_XSL)"; exit 1) | |
68 @echo "All tests passed." | |
69 | |
70 .PHONY: clean-html | |
71 clean-html: | |
72 -rm -rf ../HTML | |
73 | |
74 .PHONY: distclean | |
75 distclean: clean-html | |
76 -rm -f html.xsl |