annotate DOCS/xml/Makefile.inc @ 11206:e7534574320c

html.xsl ---> html-single.xsl + more consistency + small fixes
author diego
date Tue, 21 Oct 2003 11:07:02 +0000
parents 6dfed0b2a300
children 4e0e3ba55199
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
11206
e7534574320c html.xsl ---> html-single.xsl + more consistency + small fixes
diego
parents: 11188
diff changeset
5 # Use customized html-chunk.xsl and/or html-single.xsl file if they exist...
11188
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.
6dfed0b2a300 Add support for building all-in-one HTML docs. (Files go to DOCS/HTML-single)
lumag
parents: 11045
diff changeset
7 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
8 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
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 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
11 else
6dfed0b2a300 Add support for building all-in-one HTML docs. (Files go to DOCS/HTML-single)
lumag
parents: 11045
diff changeset
12 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
13 endif
6dfed0b2a300 Add support for building all-in-one HTML docs. (Files go to DOCS/HTML-single)
lumag
parents: 11045
diff changeset
14 else
6dfed0b2a300 Add support for building all-in-one HTML docs. (Files go to DOCS/HTML-single)
lumag
parents: 11045
diff changeset
15 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
16 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
17 endif
6dfed0b2a300 Add support for building all-in-one HTML docs. (Files go to DOCS/HTML-single)
lumag
parents: 11045
diff changeset
18
11206
e7534574320c html.xsl ---> html-single.xsl + more consistency + small fixes
diego
parents: 11188
diff changeset
19 ifeq (html-single.xsl,$(wildcard html-single.xsl))
e7534574320c html.xsl ---> html-single.xsl + more consistency + small fixes
diego
parents: 11188
diff changeset
20 HTML_SINGLE_XSL := html-single.xsl
e7534574320c html.xsl ---> html-single.xsl + more consistency + small fixes
diego
parents: 11188
diff changeset
21 ifeq (html-common.xsl,$(wildcard html-common.xsl))
e7534574320c html.xsl ---> html-single.xsl + more consistency + small fixes
diego
parents: 11188
diff changeset
22 XSL_DEPS := $(HTML_SINGLE_XSL) html-common.xsl ../html-single.xsl ../html-common.xsl
e7534574320c html.xsl ---> html-single.xsl + more consistency + small fixes
diego
parents: 11188
diff changeset
23 else
e7534574320c html.xsl ---> html-single.xsl + more consistency + small fixes
diego
parents: 11188
diff changeset
24 XSL_DEPS := $(HTML_SINGLE_XSL) html-common.xsl ../html-single.xsl ../html-common.xsl
e7534574320c html.xsl ---> html-single.xsl + more consistency + small fixes
diego
parents: 11188
diff changeset
25 endif
e7534574320c html.xsl ---> html-single.xsl + more consistency + small fixes
diego
parents: 11188
diff changeset
26 else
e7534574320c html.xsl ---> html-single.xsl + more consistency + small fixes
diego
parents: 11188
diff changeset
27 HTML_SINGLE_XSL := ../html-single.xsl
e7534574320c html.xsl ---> html-single.xsl + more consistency + small fixes
diego
parents: 11188
diff changeset
28 XSL_DEPS := $(HTML_SINGLE_XSL) ../html-common.xsl
e7534574320c html.xsl ---> html-single.xsl + more consistency + small fixes
diego
parents: 11188
diff changeset
29 endif
e7534574320c html.xsl ---> html-single.xsl + more consistency + small fixes
diego
parents: 11188
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...
11206
e7534574320c html.xsl ---> html-single.xsl + more consistency + small fixes
diego
parents: 11188
diff changeset
35 all: html-chunked html-single
11188
6dfed0b2a300 Add support for building all-in-one HTML docs. (Files go to DOCS/HTML-single)
lumag
parents: 11045
diff changeset
36 html-chunked: $(HTMLDIR)/index.html
11206
e7534574320c html.xsl ---> html-single.xsl + more consistency + small fixes
diego
parents: 11188
diff changeset
37 html-single: $(HTMLFILE)
11188
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)`
11206
e7534574320c html.xsl ---> html-single.xsl + more consistency + small fixes
diego
parents: 11188
diff changeset
53 ../xsltproc.sh $(HTMLFILE) $(HTML_SINGLE_XSL) $<
9674
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
54
11206
e7534574320c html.xsl ---> html-single.xsl + more consistency + small fixes
diego
parents: 11188
diff changeset
55 ../html-single.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