Mercurial > mplayer.hg
comparison 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 |
comparison
equal
deleted
inserted
replaced
11199:b61680a0b29a | 11200:eae346fd3769 |
---|---|
1 # Makefile for generating the HTML documentation | 1 # Makefile for generating the HTML documentation |
2 | 2 |
3 # List of subdirectories to be processed. | 3 # List of subdirectories to be processed. |
4 SUBDIRS = en fr es ru pl | 4 SUBDIRS = en fr es ru pl |
5 | 5 |
6 # Generated HTML files go here. | 6 # Generated chunked HTML files go here. |
7 HTML_TOP = ../HTML | 7 HTML_CHUNKED = ../HTML |
8 | 8 |
9 # Here go unchunked files (all DOCS in single HTML file) | 9 # Generated single HTML files go here. |
10 HTML_UNCHUNKED = ../HTML-single | 10 HTML_SINGLE = ../HTML-single |
11 | 11 |
12 .PHONY: all | 12 .PHONY: all |
13 all: build-html build-html-chunked | 13 all: build-html-chunked build-html-single |
14 | 14 |
15 .PHONY: help | 15 .PHONY: help |
16 help: | 16 help: |
17 @echo "Targets:" | 17 @echo "Targets:" |
18 @echo "********" | 18 @echo "********" |
19 @echo "all : Build everything" | 19 @echo "all : Build everything (default)." |
20 @echo " (same as build-html and build-html-chunked for now)." | 20 @echo "build-html-single : Build HTML documentation (single file)." |
21 @echo "build-html : Build HTML documentation (single file)." | |
22 @echo "build-html-chunked: Build HTML documentation (multiple files)." | 21 @echo "build-html-chunked: Build HTML documentation (multiple files)." |
23 @echo "clean-html : Purge the 'HTML-single' directory." | 22 @echo "clean-html-single : Purge the 'HTML-single' directory." |
24 @echo "clean-html-chunked: Purge the 'HTML' directory." | 23 @echo "clean-html-chunked: Purge the 'HTML' directory." |
25 @echo "distclean : Remove ALL generated files." | 24 @echo "distclean : Remove ALL generated files." |
26 | 25 |
27 .PHONY: build-html-chunked | 26 .PHONY: build-html-chunked |
28 build-html-chunked: xsltproc.sh | 27 build-html-chunked: xsltproc.sh |
29 test -d $(HTML_TOP) || mkdir $(HTML_TOP) | 28 test -d $(HTML_CHUNKED) || mkdir $(HTML_CHUNKED) |
30 for dir in $(SUBDIRS); do\ | 29 for dir in $(SUBDIRS); do\ |
31 test -f $$dir/Makefile &&\ | 30 test -f $$dir/Makefile &&\ |
32 (test -d $(HTML_TOP)/$$dir || mkdir $(HTML_TOP)/$$dir) &&\ | 31 (test -d $(HTML_CHUNKED)/$$dir || mkdir $(HTML_CHUNKED)/$$dir) &&\ |
33 if $(MAKE) HTMLDIR=../$(HTML_TOP)/$$dir -C $$dir html-chunked; then :; else exit 1; fi;\ | 32 if $(MAKE) HTMLDIR=../$(HTML_CHUNKED)/$$dir -C $$dir html-chunked; then :; else exit 1; fi;\ |
34 done | 33 done |
35 | 34 |
36 .PHONY: build-html | 35 .PHONY: build-html-single |
37 build-html: xsltproc.sh | 36 build-html-single: xsltproc.sh |
38 test -d $(HTML_TOP) || mkdir $(HTML_TOP) | 37 test -d $(HTML_SINGLE) || mkdir $(HTML_SINGLE) |
39 test -d $(HTML_UNCHUNKED) || mkdir $(HTML_UNCHUNKED) | |
40 for dir in $(SUBDIRS); do\ | 38 for dir in $(SUBDIRS); do\ |
41 test -f $$dir/Makefile &&\ | 39 test -f $$dir/Makefile &&\ |
42 if $(MAKE) HTMLFILE=../$(HTML_UNCHUNKED)/mplayer_docs_$$dir.html -C $$dir html; then :; else exit 1; fi;\ | 40 (test -d $(HTML_SINGLE)/$$dir || mkdir $(HTML_SINGLE)/$$dir) &&\ |
41 if $(MAKE) HTMLFILE=../$(HTML_SINGLE)/$$dir/MPlayer.html -C $$dir html; then :; else exit 1; fi;\ | |
43 done | 42 done |
44 | 43 |
45 .PHONY: clean-html-chunked | 44 .PHONY: clean-html-chunked |
46 clean-html: | 45 clean-html-chunked: |
47 -rm -rf $(HTML_TOP) | 46 -rm -rf $(HTML_CHUNKED) |
48 | 47 |
49 .PHONY: clean-html | 48 .PHONY: clean-html-single |
50 clean-html: | 49 clean-html-single: |
51 -rm -rf $(HTML_UNCHUNKED) | 50 -rm -rf $(HTML_SINGLE) |
52 | 51 |
53 .PHONY: distclean | 52 .PHONY: distclean |
54 distclean: clean-html clean-html-chunked | 53 distclean: clean-html-chunked clean-html-single |
55 for dir in $(SUBDIRS); do\ | 54 for dir in $(SUBDIRS); do\ |
56 test -f $$dir/Makefile &&\ | 55 test -f $$dir/Makefile &&\ |
57 if $(MAKE) HTMLDIR=../$(HTML_TOP)/$$dir -C $$dir distclean ; then :; else exit 1; fi;\ | 56 if $(MAKE) HTMLDIR=../$(HTML_CHUNKED)/$$dir -C $$dir distclean ; then :; else exit 1; fi;\ |
58 done | 57 done |
59 -rm -f html.xsl html-chunk.xsl xsltproc.sh xmllint.sh | 58 -rm -f html.xsl html-chunk.xsl xsltproc.sh xmllint.sh |
60 | 59 |
61 xsltproc.sh: configure | 60 xsltproc.sh: configure |
62 ./configure | 61 ./configure |
63 | 62 |
64 clean: clean-html | 63 clean: clean-html-chunked clean-html-single |