annotate DOCS/xml/Makefile @ 12665:751a27fc8895

index creation/reading behaviour just like the avi demuxer, patch based on work by Reza Jelveh, Moritz Bunkus und myself
author alex
date Fri, 25 Jun 2004 18:45:56 +0000
parents b32d836f9aa3
children fb78154c326f
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.
12525
b32d836f9aa3 hungarian xml docs
alex
parents: 11883
diff changeset
4 SUBDIRS = en es fr hu pl ru
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
11818
c219c245aa50 Build target names shortened.
diego
parents: 11817
diff changeset
13 all: html-chunked 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)."
11818
c219c245aa50 Build target names shortened.
diego
parents: 11817
diff changeset
20 @echo "html-single : Build HTML documentation (single file)."
11883
51e14a023339 Structure rewritten, to allow single language build and some simplifications.
wight
parents: 11841
diff changeset
21 @echo "html-single-LANG : As above, but only one language."
11818
c219c245aa50 Build target names shortened.
diego
parents: 11817
diff changeset
22 @echo "html-chunked : Build HTML documentation (multiple files)."
11883
51e14a023339 Structure rewritten, to allow single language build and some simplifications.
wight
parents: 11841
diff changeset
23 @echo "html-chunked-LANG : As above, but only one language."
11200
eae346fd3769 Big consistency overhaul, targets and variables renamed to *-single and
diego
parents: 11188
diff changeset
24 @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
25 @echo "clean-html-chunked: Purge the 'HTML' directory."
11206
e7534574320c html.xsl ---> html-single.xsl + more consistency + small fixes
diego
parents: 11200
diff changeset
26 @echo "clean : Purge the 'HTML' and 'HTML-single' directories."
11188
6dfed0b2a300 Add support for building all-in-one HTML docs. (Files go to DOCS/HTML-single)
lumag
parents: 11130
diff changeset
27 @echo "distclean : Remove ALL generated files."
11883
51e14a023339 Structure rewritten, to allow single language build and some simplifications.
wight
parents: 11841
diff changeset
28 @echo "distclean-LANG : Remove ALL generated files for one language."
51e14a023339 Structure rewritten, to allow single language build and some simplifications.
wight
parents: 11841
diff changeset
29 @echo "Substitute LANG for one of $(SUBDIRS)"
9674
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
30
11883
51e14a023339 Structure rewritten, to allow single language build and some simplifications.
wight
parents: 11841
diff changeset
31 .PHONY: html-chunked chunked-dir
51e14a023339 Structure rewritten, to allow single language build and some simplifications.
wight
parents: 11841
diff changeset
32 html-chunked: xsltproc.sh xmllint.sh chunked-dir $(addprefix html-chunked-,$(SUBDIRS))
51e14a023339 Structure rewritten, to allow single language build and some simplifications.
wight
parents: 11841
diff changeset
33 chunked-dir:
11841
67550c3b21a5 Make the build system print everything it does.
diego
parents: 11818
diff changeset
34 test -d $(HTML_CHUNKED) || mkdir $(HTML_CHUNKED)
9674
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
35
11883
51e14a023339 Structure rewritten, to allow single language build and some simplifications.
wight
parents: 11841
diff changeset
36 .PHONY: html-single single-dir
51e14a023339 Structure rewritten, to allow single language build and some simplifications.
wight
parents: 11841
diff changeset
37 html-single: xsltproc.sh xmllint.sh single-dir $(addprefix html-single-,$(SUBDIRS))
51e14a023339 Structure rewritten, to allow single language build and some simplifications.
wight
parents: 11841
diff changeset
38 single-dir:
11841
67550c3b21a5 Make the build system print everything it does.
diego
parents: 11818
diff changeset
39 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
40
6dfed0b2a300 Add support for building all-in-one HTML docs. (Files go to DOCS/HTML-single)
lumag
parents: 11130
diff changeset
41 .PHONY: clean-html-chunked
11200
eae346fd3769 Big consistency overhaul, targets and variables renamed to *-single and
diego
parents: 11188
diff changeset
42 clean-html-chunked:
11841
67550c3b21a5 Make the build system print everything it does.
diego
parents: 11818
diff changeset
43 -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
44
11200
eae346fd3769 Big consistency overhaul, targets and variables renamed to *-single and
diego
parents: 11188
diff changeset
45 .PHONY: clean-html-single
eae346fd3769 Big consistency overhaul, targets and variables renamed to *-single and
diego
parents: 11188
diff changeset
46 clean-html-single:
11841
67550c3b21a5 Make the build system print everything it does.
diego
parents: 11818
diff changeset
47 -rm -rf $(HTML_SINGLE)
9674
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
48
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
49 .PHONY: distclean
11883
51e14a023339 Structure rewritten, to allow single language build and some simplifications.
wight
parents: 11841
diff changeset
50 distclean: clean-html-chunked clean-html-single $(addprefix distclean-,$(SUBDIRS))
11841
67550c3b21a5 Make the build system print everything it does.
diego
parents: 11818
diff changeset
51 -rm -f html-chunk.xsl html-single.xsl xsltproc.sh xmllint.sh
10309
3c0e1b182fbc XML autoconfiguration by Dmitry Baryshkov <lumag@qnc.ru> with some
diego
parents: 10110
diff changeset
52
11326
23192e33fad5 Dependencies for autogenerated files added.
diego
parents: 11206
diff changeset
53 xsltproc.sh xmllint.sh:
11841
67550c3b21a5 Make the build system print everything it does.
diego
parents: 11818
diff changeset
54 sh configure
11063
f44ee899fbf1 clean -> clean-html
gabucino
parents: 11052
diff changeset
55
11200
eae346fd3769 Big consistency overhaul, targets and variables renamed to *-single and
diego
parents: 11188
diff changeset
56 clean: clean-html-chunked clean-html-single
11883
51e14a023339 Structure rewritten, to allow single language build and some simplifications.
wight
parents: 11841
diff changeset
57
51e14a023339 Structure rewritten, to allow single language build and some simplifications.
wight
parents: 11841
diff changeset
58 define lang-def
51e14a023339 Structure rewritten, to allow single language build and some simplifications.
wight
parents: 11841
diff changeset
59 .PHONY: html-chunked-$(1) html-single-$(1) distclean-$(1)
51e14a023339 Structure rewritten, to allow single language build and some simplifications.
wight
parents: 11841
diff changeset
60 html-chunked-$(1): xsltproc.sh xmllint.sh chunked-dir
51e14a023339 Structure rewritten, to allow single language build and some simplifications.
wight
parents: 11841
diff changeset
61 (test -d $(HTML_CHUNKED)/$(1) || mkdir $(HTML_CHUNKED)/$(1))
51e14a023339 Structure rewritten, to allow single language build and some simplifications.
wight
parents: 11841
diff changeset
62 $(MAKE) HTMLDIR=../$(HTML_CHUNKED)/$(1) -C $(1) html-chunked
51e14a023339 Structure rewritten, to allow single language build and some simplifications.
wight
parents: 11841
diff changeset
63
51e14a023339 Structure rewritten, to allow single language build and some simplifications.
wight
parents: 11841
diff changeset
64 html-single-$(1): xsltproc.sh xmllint.sh single-dir
51e14a023339 Structure rewritten, to allow single language build and some simplifications.
wight
parents: 11841
diff changeset
65 (test -d $(HTML_SINGLE)/$(1) || mkdir $(HTML_SINGLE)/$(1))
51e14a023339 Structure rewritten, to allow single language build and some simplifications.
wight
parents: 11841
diff changeset
66 $(MAKE) HTMLFILE=../$(HTML_SINGLE)/$(1)/MPlayer.html -C $(1) html-single
51e14a023339 Structure rewritten, to allow single language build and some simplifications.
wight
parents: 11841
diff changeset
67
51e14a023339 Structure rewritten, to allow single language build and some simplifications.
wight
parents: 11841
diff changeset
68 distclean-$(1):
51e14a023339 Structure rewritten, to allow single language build and some simplifications.
wight
parents: 11841
diff changeset
69 -rm -rf $(HTML_SINGLE)/$(1) $(HTML_CHUNKED)/$(1)
51e14a023339 Structure rewritten, to allow single language build and some simplifications.
wight
parents: 11841
diff changeset
70 $(MAKE) HTMLDIR=../$(HTML_CHUNKED)/$(1) -C $(1) distclean
51e14a023339 Structure rewritten, to allow single language build and some simplifications.
wight
parents: 11841
diff changeset
71 endef
51e14a023339 Structure rewritten, to allow single language build and some simplifications.
wight
parents: 11841
diff changeset
72
51e14a023339 Structure rewritten, to allow single language build and some simplifications.
wight
parents: 11841
diff changeset
73 $(foreach lang, $(SUBDIRS),$(eval $(call lang-def,$(lang))))