Mercurial > mplayer.hg
annotate DOCS/xml/Makefile.inc @ 11383:876711f446f9
sync
author | nauj27 |
---|---|
date | Tue, 04 Nov 2003 19:03:10 +0000 |
parents | 23192e33fad5 |
children | c17fc395142a |
rev | line source |
---|---|
9674 | 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 | 3 # |
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 | 32 HTML_STYLESHEET ?= ../default.css |
33 | |
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) |
11310
4e0e3ba55199
Linebreaks added for improved readability, long lines in error message
diego
parents:
11206
diff
changeset
|
40 @if test "$(HTMLDIR)" = "" ; then \ |
4e0e3ba55199
Linebreaks added for improved readability, long lines in error message
diego
parents:
11206
diff
changeset
|
41 echo "Error: HTMLDIR not set!!!"; \ |
4e0e3ba55199
Linebreaks added for improved readability, long lines in error message
diego
parents:
11206
diff
changeset
|
42 echo "Typically this means, that you've run make from a subdir of DOCS/xml."; \ |
4e0e3ba55199
Linebreaks added for improved readability, long lines in error message
diego
parents:
11206
diff
changeset
|
43 echo "Don't do this!"; \ |
4e0e3ba55199
Linebreaks added for improved readability, long lines in error message
diego
parents:
11206
diff
changeset
|
44 false; \ |
4e0e3ba55199
Linebreaks added for improved readability, long lines in error message
diego
parents:
11206
diff
changeset
|
45 fi |
4e0e3ba55199
Linebreaks added for improved readability, long lines in error message
diego
parents:
11206
diff
changeset
|
46 if test "$(USE_SYMLINKS)" = "yes" ; then \ |
4e0e3ba55199
Linebreaks added for improved readability, long lines in error message
diego
parents:
11206
diff
changeset
|
47 for file in ../en/*.xml ; do \ |
4e0e3ba55199
Linebreaks added for improved readability, long lines in error message
diego
parents:
11206
diff
changeset
|
48 if ! test -r `basename $$file` ; then \ |
4e0e3ba55199
Linebreaks added for improved readability, long lines in error message
diego
parents:
11206
diff
changeset
|
49 ln -s $$file `basename $$file` ; \ |
4e0e3ba55199
Linebreaks added for improved readability, long lines in error message
diego
parents:
11206
diff
changeset
|
50 fi ; \ |
4e0e3ba55199
Linebreaks added for improved readability, long lines in error message
diego
parents:
11206
diff
changeset
|
51 done ; \ |
4e0e3ba55199
Linebreaks added for improved readability, long lines in error message
diego
parents:
11206
diff
changeset
|
52 fi |
9674 | 53 -rm -f $(HTMLDIR)/* |
10309
3c0e1b182fbc
XML autoconfiguration by Dmitry Baryshkov <lumag@qnc.ru> with some
diego
parents:
10025
diff
changeset
|
54 ../xmllint.sh $< |
10025 | 55 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
|
56 ../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
|
57 |
6dfed0b2a300
Add support for building all-in-one HTML docs. (Files go to DOCS/HTML-single)
lumag
parents:
11045
diff
changeset
|
58 $(HTMLFILE): documentation.xml $(XSL_DEPS) |
11310
4e0e3ba55199
Linebreaks added for improved readability, long lines in error message
diego
parents:
11206
diff
changeset
|
59 @if test "$(HTMLFILE)" = "" ; then \ |
4e0e3ba55199
Linebreaks added for improved readability, long lines in error message
diego
parents:
11206
diff
changeset
|
60 echo "Error: HTMLFILE not set!!!"; \ |
4e0e3ba55199
Linebreaks added for improved readability, long lines in error message
diego
parents:
11206
diff
changeset
|
61 echo "Typically this means, that you've run make from a subdir of DOCS/xml."; \ |
4e0e3ba55199
Linebreaks added for improved readability, long lines in error message
diego
parents:
11206
diff
changeset
|
62 echo "Don't do this!"; \ |
4e0e3ba55199
Linebreaks added for improved readability, long lines in error message
diego
parents:
11206
diff
changeset
|
63 false; \ |
4e0e3ba55199
Linebreaks added for improved readability, long lines in error message
diego
parents:
11206
diff
changeset
|
64 fi |
4e0e3ba55199
Linebreaks added for improved readability, long lines in error message
diego
parents:
11206
diff
changeset
|
65 if test "$(USE_SYMLINKS)" = "yes" ; then \ |
4e0e3ba55199
Linebreaks added for improved readability, long lines in error message
diego
parents:
11206
diff
changeset
|
66 for file in ../en/*.xml ; do \ |
4e0e3ba55199
Linebreaks added for improved readability, long lines in error message
diego
parents:
11206
diff
changeset
|
67 if ! test -r `basename $$file` ; then \ |
4e0e3ba55199
Linebreaks added for improved readability, long lines in error message
diego
parents:
11206
diff
changeset
|
68 ln -s $$file `basename $$file` ; \ |
4e0e3ba55199
Linebreaks added for improved readability, long lines in error message
diego
parents:
11206
diff
changeset
|
69 fi ; \ |
4e0e3ba55199
Linebreaks added for improved readability, long lines in error message
diego
parents:
11206
diff
changeset
|
70 done ; \ |
4e0e3ba55199
Linebreaks added for improved readability, long lines in error message
diego
parents:
11206
diff
changeset
|
71 fi |
11188
6dfed0b2a300
Add support for building all-in-one HTML docs. (Files go to DOCS/HTML-single)
lumag
parents:
11045
diff
changeset
|
72 -rm -f $(HTMLFILE) |
6dfed0b2a300
Add support for building all-in-one HTML docs. (Files go to DOCS/HTML-single)
lumag
parents:
11045
diff
changeset
|
73 ../xmllint.sh $< |
6dfed0b2a300
Add support for building all-in-one HTML docs. (Files go to DOCS/HTML-single)
lumag
parents:
11045
diff
changeset
|
74 cp -f $(HTML_STYLESHEET) `dirname $(HTMLFILE)` |
11206
e7534574320c
html.xsl ---> html-single.xsl + more consistency + small fixes
diego
parents:
11188
diff
changeset
|
75 ../xsltproc.sh $(HTMLFILE) $(HTML_SINGLE_XSL) $< |
9674 | 76 |
11326 | 77 ../html-chunk.xsl ../html-single.xsl: |
78 cd .. && sh configure | |
11045 | 79 |
80 distclean: | |
11310
4e0e3ba55199
Linebreaks added for improved readability, long lines in error message
diego
parents:
11206
diff
changeset
|
81 if test "$(USE_SYMLINKS)" = "yes" ; then \ |
4e0e3ba55199
Linebreaks added for improved readability, long lines in error message
diego
parents:
11206
diff
changeset
|
82 for file in *.xml ; do \ |
4e0e3ba55199
Linebreaks added for improved readability, long lines in error message
diego
parents:
11206
diff
changeset
|
83 if test -L $$file && test "`readlink $$file`" = "../en/$$file" ; then \ |
4e0e3ba55199
Linebreaks added for improved readability, long lines in error message
diego
parents:
11206
diff
changeset
|
84 rm $$file ; \ |
4e0e3ba55199
Linebreaks added for improved readability, long lines in error message
diego
parents:
11206
diff
changeset
|
85 fi ; \ |
4e0e3ba55199
Linebreaks added for improved readability, long lines in error message
diego
parents:
11206
diff
changeset
|
86 done ; \ |
4e0e3ba55199
Linebreaks added for improved readability, long lines in error message
diego
parents:
11206
diff
changeset
|
87 fi |