annotate DOCS/xml/Makefile @ 33263:5f527a9a9521

Add an exit function. This function will allow performing clean-up operations. (MPlayer calls guiDone() before exiting, but only if the GUI has been initialized, i.e. if guiInit() has been called successfully. Any exit_player()/exit_player_with_rc() after GUI's cfg_read() until guiInit(), or any exit_player() during guiInit() itself will end the GUI without calling guiDone(). This exit function will at least handle abortions during guiInit() itself. It will be called twice in case of an guiExit() after GUI initialization - first directly, next by guiDone() via MPlayer's exit_player_with_rc().)
author ib
date Tue, 03 May 2011 12:19:22 +0000
parents 2945ef80a0ad
children 70e6cffc6bb9
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
27296
a316bc1ea84d Only build the documentation in the languages requested from configure.
diego
parents: 23492
diff changeset
3 include ../../config.mak
31468
dbab16182ba2 Get rid of xmllint wrapper redirection; run commands directly from make.
diego
parents: 31111
diff changeset
4 include xml.mak
9674
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
5
29965
1bff8cc9ca6b Do not build monolithic documentation in a separate directory.
diego
parents: 29964
diff changeset
6 # Generated HTML files go here.
1bff8cc9ca6b Do not build monolithic documentation in a separate directory.
diego
parents: 29964
diff changeset
7 HTML = ../HTML
9674
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
8
29971
582d78986e87 Factorize generating the list of all main.xml files.
diego
parents: 29970
diff changeset
9 MAIN_XML_ALL = $(foreach lang,$(DOC_LANG_ALL),$(lang)/main.xml)
31472
f5b66007c5e1 Get rid of xsltproc wrapper redirection; run commands directly from make.
diego
parents: 31471
diff changeset
10 CONFIGURE_GENERATED = html-chunk.xsl html-single.xsl xml.mak
29971
582d78986e87 Factorize generating the list of all main.xml files.
diego
parents: 29970
diff changeset
11
11818
c219c245aa50 Build target names shortened.
diego
parents: 11817
diff changeset
12 all: html-chunked html-single
9674
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
13
29964
5513e1981e0e - Remove now unnecessary dependency on intermediate directories.
diego
parents: 29963
diff changeset
14 html-chunked: $(addprefix html-chunked-,$(DOC_LANGS))
5513e1981e0e - Remove now unnecessary dependency on intermediate directories.
diego
parents: 29963
diff changeset
15 html-single: $(addprefix html-single-,$(DOC_LANGS))
11188
6dfed0b2a300 Add support for building all-in-one HTML docs. (Files go to DOCS/HTML-single)
lumag
parents: 11130
diff changeset
16
29989
9496061d46a1 The general xmllint target should only check configured languages.
diego
parents: 29988
diff changeset
17 xmllint: $(addprefix xmllint-,$(DOC_LANGS))
15126
6555c01128b7 Support syntax checking only
wight
parents: 15101
diff changeset
18
29982
d44a9fa37399 Exploit one more opportunity to make use of the CONFIGURE_GENERATED variable.
diego
parents: 29981
diff changeset
19 $(CONFIGURE_GENERATED) $(MAIN_XML_ALL):
31110
6d19129bcd9e cosmetics: Invoke all shell scripts during XML documentation build directly.
diego
parents: 31109
diff changeset
20 ./configure
11063
f44ee899fbf1 clean -> clean-html
gabucino
parents: 11052
diff changeset
21
11883
51e14a023339 Structure rewritten, to allow single language build and some simplifications.
wight
parents: 11841
diff changeset
22 define lang-def
31471
da0291f41eb7 Move xsltproc target file hack to the Makefile.
diego
parents: 31468
diff changeset
23 html-chunked-$(lang): $(HTML)/$(lang)/dummy.html
31107
a29b422baba5 Do not run xmllint prior to building the XML documentation.
diego
parents: 31106
diff changeset
24 html-single-$(lang): $(HTML)/$(lang)/MPlayer.html
31471
da0291f41eb7 Move xsltproc target file hack to the Makefile.
diego
parents: 31468
diff changeset
25 $(HTML)/$(lang)/dummy.html $(HTML)/$(lang)/MPlayer.html: $(lang)/main.xml $(wildcard $(lang)/*.xml) html-common.xsl $(HTML)/$(lang)/default.css
29987
a8ac62150c75 Factorize dependencies of language-specific HTML generation targets.
diego
parents: 29986
diff changeset
26
31109
729ce4709ce1 Create output directory when copying stylesheet.
diego
parents: 31107
diff changeset
27 $(HTML)/$(lang)/default.css:
31111
ebcf975378b3 10l: Use the directory part of the stylesheet path to create a directory.
diego
parents: 31110
diff changeset
28 mkdir -p $$(@D)
31103
1ff8bca53fe6 Make XML documentation build process nonrecursive.
diego
parents: 31095
diff changeset
29 cp -f default.css $$(@D)
11883
51e14a023339 Structure rewritten, to allow single language build and some simplifications.
wight
parents: 11841
diff changeset
30
31471
da0291f41eb7 Move xsltproc target file hack to the Makefile.
diego
parents: 31468
diff changeset
31 $(HTML)/$(lang)/dummy.html:
31472
f5b66007c5e1 Get rid of xsltproc wrapper redirection; run commands directly from make.
diego
parents: 31471
diff changeset
32 SGML_CATALOG_FILES=$(CATALOG) $(XSLT_COMMAND) $$@ html-chunk.xsl $$<
11883
51e14a023339 Structure rewritten, to allow single language build and some simplifications.
wight
parents: 11841
diff changeset
33
31103
1ff8bca53fe6 Make XML documentation build process nonrecursive.
diego
parents: 31095
diff changeset
34 $(HTML)/$(lang)/MPlayer.html:
31472
f5b66007c5e1 Get rid of xsltproc wrapper redirection; run commands directly from make.
diego
parents: 31471
diff changeset
35 SGML_CATALOG_FILES=$(CATALOG) $(XSLT_COMMAND) $$@ html-single.xsl $$<
31103
1ff8bca53fe6 Make XML documentation build process nonrecursive.
diego
parents: 31095
diff changeset
36
31468
dbab16182ba2 Get rid of xmllint wrapper redirection; run commands directly from make.
diego
parents: 31111
diff changeset
37 xmllint-$(lang):
dbab16182ba2 Get rid of xmllint wrapper redirection; run commands directly from make.
diego
parents: 31111
diff changeset
38 SGML_CATALOG_FILES=$(CATALOG) $(XMLLINT_COMMAND) $(lang)/main.xml
11883
51e14a023339 Structure rewritten, to allow single language build and some simplifications.
wight
parents: 11841
diff changeset
39 endef
51e14a023339 Structure rewritten, to allow single language build and some simplifications.
wight
parents: 11841
diff changeset
40
30003
e709ce5b5d34 Simplify the evaluation of the lang-def template:
diego
parents: 29991
diff changeset
41 $(foreach lang, $(DOC_LANG_ALL),$(eval $(lang-def)))
22467
7336cfb3b88f Merge all .PHONY target declarations.
diego
parents: 21649
diff changeset
42
28220
e8a6bde9ef9e cosmetics: Move clean targets to the bottom.
diego
parents: 28219
diff changeset
43 clean:
29991
79720cbec672 Ignore errors from failing rm commands in clean targets.
diego
parents: 29990
diff changeset
44 -rm -rf $(HTML)
28220
e8a6bde9ef9e cosmetics: Move clean targets to the bottom.
diego
parents: 28219
diff changeset
45
31517
2945ef80a0ad Remove help target that prints available targets.
diego
parents: 31472
diff changeset
46 # Remove generated files but keep the HTML (for release tarballs).
28221
ded986da716f nonrecursive releaseclean target
diego
parents: 28220
diff changeset
47 releaseclean:
29991
79720cbec672 Ignore errors from failing rm commands in clean targets.
diego
parents: 29990
diff changeset
48 -rm -f $(CONFIGURE_GENERATED)
79720cbec672 Ignore errors from failing rm commands in clean targets.
diego
parents: 29990
diff changeset
49 -rm -f $(MAIN_XML_ALL)
28220
e8a6bde9ef9e cosmetics: Move clean targets to the bottom.
diego
parents: 28219
diff changeset
50
e8a6bde9ef9e cosmetics: Move clean targets to the bottom.
diego
parents: 28219
diff changeset
51 distclean: clean releaseclean
e8a6bde9ef9e cosmetics: Move clean targets to the bottom.
diego
parents: 28219
diff changeset
52
31517
2945ef80a0ad Remove help target that prints available targets.
diego
parents: 31472
diff changeset
53 .PHONY: all html-chunked html-single xmllint
31105
cf40376e7302 Only mark targets whose names end in "clean" as phony.
diego
parents: 31103
diff changeset
54 .PHONY: html-chunked-* html-single-* xmllint-* *clean