annotate DOCS/xml/Makefile.inc @ 11201:eee3cac803de

Get rid of the annoying and useless "Subtitles requested but not found" message.
author mosu
date Tue, 21 Oct 2003 08:45:13 +0000
parents 6dfed0b2a300
children e7534574320c
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 #
10309
3c0e1b182fbc XML autoconfiguration by Dmitry Baryshkov <lumag@qnc.ru> with some
diego
parents: 10025
diff changeset
2 # Makefile.inc for Makefiles in subdirectories.
9674
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
3 #
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
4
11188
6dfed0b2a300 Add support for building all-in-one HTML docs. (Files go to DOCS/HTML-single)
lumag
parents: 11045
diff changeset
5 # Use customized html.xsl and/or html-chunk.xsl file if they exist...
6dfed0b2a300 Add support for building all-in-one HTML docs. (Files go to DOCS/HTML-single)
lumag
parents: 11045
diff changeset
6 # Also add html-common.xsl to depends if it exists.
9674
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
7 ifeq (html.xsl,$(wildcard html.xsl))
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
8 HTML_XSL := html.xsl
11188
6dfed0b2a300 Add support for building all-in-one HTML docs. (Files go to DOCS/HTML-single)
lumag
parents: 11045
diff changeset
9 ifeq (html-common.xsl,$(wildcard html-common.xsl))
6dfed0b2a300 Add support for building all-in-one HTML docs. (Files go to DOCS/HTML-single)
lumag
parents: 11045
diff changeset
10 XSL_DEPS := $(HTML_XSL) html-common.xsl ../html.xsl ../html-common.xsl
6dfed0b2a300 Add support for building all-in-one HTML docs. (Files go to DOCS/HTML-single)
lumag
parents: 11045
diff changeset
11 else
6dfed0b2a300 Add support for building all-in-one HTML docs. (Files go to DOCS/HTML-single)
lumag
parents: 11045
diff changeset
12 XSL_DEPS := $(HTML_XSL) html-common.xsl ../html.xsl ../html-common.xsl
6dfed0b2a300 Add support for building all-in-one HTML docs. (Files go to DOCS/HTML-single)
lumag
parents: 11045
diff changeset
13 endif
9674
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
14 else
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
15 HTML_XSL := ../html.xsl
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
16 XSL_DEPS := $(HTML_XSL) ../html-common.xsl
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
17 endif
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
18
11188
6dfed0b2a300 Add support for building all-in-one HTML docs. (Files go to DOCS/HTML-single)
lumag
parents: 11045
diff changeset
19 ifeq (html-chunk.xsl,$(wildcard html-chunk.xsl))
6dfed0b2a300 Add support for building all-in-one HTML docs. (Files go to DOCS/HTML-single)
lumag
parents: 11045
diff changeset
20 HTML_CHUNK_XSL := html-chunk.xsl
6dfed0b2a300 Add support for building all-in-one HTML docs. (Files go to DOCS/HTML-single)
lumag
parents: 11045
diff changeset
21 ifeq (html-common.xsl,$(wildcard html-common.xsl))
6dfed0b2a300 Add support for building all-in-one HTML docs. (Files go to DOCS/HTML-single)
lumag
parents: 11045
diff changeset
22 CHUNK_XSL_DEPS := $(HTML_CHUNK_XSL) html-common.xsl ../html-chunk.xsl ../html-common.xsl
6dfed0b2a300 Add support for building all-in-one HTML docs. (Files go to DOCS/HTML-single)
lumag
parents: 11045
diff changeset
23 else
6dfed0b2a300 Add support for building all-in-one HTML docs. (Files go to DOCS/HTML-single)
lumag
parents: 11045
diff changeset
24 CHUNK_XSL_DEPS := $(HTML_CHUNK_XSL) ../html-chunk.xsl ../html-common.xsl
6dfed0b2a300 Add support for building all-in-one HTML docs. (Files go to DOCS/HTML-single)
lumag
parents: 11045
diff changeset
25 endif
6dfed0b2a300 Add support for building all-in-one HTML docs. (Files go to DOCS/HTML-single)
lumag
parents: 11045
diff changeset
26 else
6dfed0b2a300 Add support for building all-in-one HTML docs. (Files go to DOCS/HTML-single)
lumag
parents: 11045
diff changeset
27 HTML_CHUNK_XSL := ../html-chunk.xsl
6dfed0b2a300 Add support for building all-in-one HTML docs. (Files go to DOCS/HTML-single)
lumag
parents: 11045
diff changeset
28 CHUNK_XSL_DEPS := $(HTML_CHUNK_XSL) ../html-common.xsl
6dfed0b2a300 Add support for building all-in-one HTML docs. (Files go to DOCS/HTML-single)
lumag
parents: 11045
diff changeset
29 endif
6dfed0b2a300 Add support for building all-in-one HTML docs. (Files go to DOCS/HTML-single)
lumag
parents: 11045
diff changeset
30
10309
3c0e1b182fbc XML autoconfiguration by Dmitry Baryshkov <lumag@qnc.ru> with some
diego
parents: 10025
diff changeset
31 # Fall back to the default HTML stylesheet if none is specified.
9674
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
32 HTML_STYLESHEET ?= ../default.css
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
33
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
34 # This is the main target...
11188
6dfed0b2a300 Add support for building all-in-one HTML docs. (Files go to DOCS/HTML-single)
lumag
parents: 11045
diff changeset
35 all: html html-chunked
6dfed0b2a300 Add support for building all-in-one HTML docs. (Files go to DOCS/HTML-single)
lumag
parents: 11045
diff changeset
36 html: $(HTMLFILE)
6dfed0b2a300 Add support for building all-in-one HTML docs. (Files go to DOCS/HTML-single)
lumag
parents: 11045
diff changeset
37 html-chunked: $(HTMLDIR)/index.html
6dfed0b2a300 Add support for building all-in-one HTML docs. (Files go to DOCS/HTML-single)
lumag
parents: 11045
diff changeset
38
6dfed0b2a300 Add support for building all-in-one HTML docs. (Files go to DOCS/HTML-single)
lumag
parents: 11045
diff changeset
39 $(HTMLDIR)/index.html: documentation.xml $(CHUNK_XSL_DEPS)
10914
f6268d5a10f4 I don't think, that anybody likes seeng rm -f /* command :)
lumag
parents: 10309
diff changeset
40 @if test "$(HTMLDIR)" = "" ; then echo "Error: HTMLDIR not set!!!"; echo "Typically this means, that you've run make from subdir of DOCS/xml. Don't do this!" ; false; fi
11045
4dc3149f5b74 Support for building incomplete translations.
diego
parents: 10914
diff changeset
41 if test "$(USE_SYMLINKS)" = "yes" ; then for file in ../en/*.xml ; do if ! test -r `basename $$file` ; then ln -s $$file `basename $$file` ; fi ; done ; fi
9674
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
42 -rm -f $(HTMLDIR)/*
10309
3c0e1b182fbc XML autoconfiguration by Dmitry Baryshkov <lumag@qnc.ru> with some
diego
parents: 10025
diff changeset
43 ../xmllint.sh $<
10025
970a95a4d856 Add support for the Saxon XSLT Processor.
lumag
parents: 9674
diff changeset
44 cp $(HTML_STYLESHEET) $(HTMLDIR)/
11188
6dfed0b2a300 Add support for building all-in-one HTML docs. (Files go to DOCS/HTML-single)
lumag
parents: 11045
diff changeset
45 ../xsltproc.sh $(HTMLDIR)/ $(HTML_CHUNK_XSL) $<
6dfed0b2a300 Add support for building all-in-one HTML docs. (Files go to DOCS/HTML-single)
lumag
parents: 11045
diff changeset
46
6dfed0b2a300 Add support for building all-in-one HTML docs. (Files go to DOCS/HTML-single)
lumag
parents: 11045
diff changeset
47 $(HTMLFILE): documentation.xml $(XSL_DEPS)
6dfed0b2a300 Add support for building all-in-one HTML docs. (Files go to DOCS/HTML-single)
lumag
parents: 11045
diff changeset
48 @if test "$(HTMLFILE)" = "" ; then echo "Error: HTMLFILE not set!!!"; echo "Typically this means, that you've run make from subdir of DOCS/xml. Don't do this!" ; false; fi
6dfed0b2a300 Add support for building all-in-one HTML docs. (Files go to DOCS/HTML-single)
lumag
parents: 11045
diff changeset
49 if test "$(USE_SYMLINKS)" = "yes" ; then for file in ../en/*.xml ; do if ! test -r `basename $$file` ; then ln -s $$file `basename $$file` ; fi ; done ; fi
6dfed0b2a300 Add support for building all-in-one HTML docs. (Files go to DOCS/HTML-single)
lumag
parents: 11045
diff changeset
50 -rm -f $(HTMLFILE)
6dfed0b2a300 Add support for building all-in-one HTML docs. (Files go to DOCS/HTML-single)
lumag
parents: 11045
diff changeset
51 ../xmllint.sh $<
6dfed0b2a300 Add support for building all-in-one HTML docs. (Files go to DOCS/HTML-single)
lumag
parents: 11045
diff changeset
52 cp -f $(HTML_STYLESHEET) `dirname $(HTMLFILE)`
6dfed0b2a300 Add support for building all-in-one HTML docs. (Files go to DOCS/HTML-single)
lumag
parents: 11045
diff changeset
53 ../xsltproc.sh $(HTMLFILE) $(HTML_XSL) $<
9674
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
54
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
55 ../html.xsl:
10309
3c0e1b182fbc XML autoconfiguration by Dmitry Baryshkov <lumag@qnc.ru> with some
diego
parents: 10025
diff changeset
56 cd .. && sh configure
11045
4dc3149f5b74 Support for building incomplete translations.
diego
parents: 10914
diff changeset
57
4dc3149f5b74 Support for building incomplete translations.
diego
parents: 10914
diff changeset
58 distclean:
4dc3149f5b74 Support for building incomplete translations.
diego
parents: 10914
diff changeset
59 if test "$(USE_SYMLINKS)" = "yes" ; then for file in *.xml ; do if test -L $$file && test "`readlink $$file`" = "../en/$$file" ; then rm $$file ; fi ; done ; fi