Mercurial > mplayer.hg
annotate DOCS/xml/Makefile.inc @ 13951:a181e18aba8d
sync to 1.23
author | gabrov |
---|---|
date | Mon, 15 Nov 2004 11:49:53 +0000 |
parents | e589db41eb34 |
children | 6555c01128b7 |
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. |
11887 | 7 ifeq (html-common.xsl,$(wildcard html-common.xsl)) |
8 COMMON_XSL_DEPS := html-common.xsl ../html-common.xsl | |
9 else | |
10 COMMON_XSL_DEPS := ../html-common.xsl | |
11 endif | |
12 | |
11188
6dfed0b2a300
Add support for building all-in-one HTML docs. (Files go to DOCS/HTML-single)
lumag
parents:
11045
diff
changeset
|
13 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
|
14 HTML_CHUNK_XSL := html-chunk.xsl |
11887 | 15 CHUNK_XSL_DEPS := $(HTML_CHUNK_XSL) ../html-chunk.xsl $(COMMON_XSL_DEPS) |
11188
6dfed0b2a300
Add support for building all-in-one HTML docs. (Files go to DOCS/HTML-single)
lumag
parents:
11045
diff
changeset
|
16 else |
6dfed0b2a300
Add support for building all-in-one HTML docs. (Files go to DOCS/HTML-single)
lumag
parents:
11045
diff
changeset
|
17 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
|
18 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
|
19 endif |
6dfed0b2a300
Add support for building all-in-one HTML docs. (Files go to DOCS/HTML-single)
lumag
parents:
11045
diff
changeset
|
20 |
11206
e7534574320c
html.xsl ---> html-single.xsl + more consistency + small fixes
diego
parents:
11188
diff
changeset
|
21 ifeq (html-single.xsl,$(wildcard html-single.xsl)) |
e7534574320c
html.xsl ---> html-single.xsl + more consistency + small fixes
diego
parents:
11188
diff
changeset
|
22 HTML_SINGLE_XSL := html-single.xsl |
11887 | 23 XSL_DEPS := $(HTML_SINGLE_XSL) ../html-single.xsl $(COMMON_XSL_DEPS) |
11206
e7534574320c
html.xsl ---> html-single.xsl + more consistency + small fixes
diego
parents:
11188
diff
changeset
|
24 else |
e7534574320c
html.xsl ---> html-single.xsl + more consistency + small fixes
diego
parents:
11188
diff
changeset
|
25 HTML_SINGLE_XSL := ../html-single.xsl |
e7534574320c
html.xsl ---> html-single.xsl + more consistency + small fixes
diego
parents:
11188
diff
changeset
|
26 XSL_DEPS := $(HTML_SINGLE_XSL) ../html-common.xsl |
e7534574320c
html.xsl ---> html-single.xsl + more consistency + small fixes
diego
parents:
11188
diff
changeset
|
27 endif |
e7534574320c
html.xsl ---> html-single.xsl + more consistency + small fixes
diego
parents:
11188
diff
changeset
|
28 |
10309
3c0e1b182fbc
XML autoconfiguration by Dmitry Baryshkov <lumag@qnc.ru> with some
diego
parents:
10025
diff
changeset
|
29 # Fall back to the default HTML stylesheet if none is specified. |
9674 | 30 HTML_STYLESHEET ?= ../default.css |
31 | |
32 # This is the main target... | |
11887 | 33 .PHONY: all html-chunked html-single |
11206
e7534574320c
html.xsl ---> html-single.xsl + more consistency + small fixes
diego
parents:
11188
diff
changeset
|
34 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
|
35 html-chunked: $(HTMLDIR)/index.html |
11206
e7534574320c
html.xsl ---> html-single.xsl + more consistency + small fixes
diego
parents:
11188
diff
changeset
|
36 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
|
37 |
12969
e589db41eb34
Make symlinks behavior more sensible - regenerate symlinks (and documentation)
wight
parents:
11893
diff
changeset
|
38 SYMLINKS_DEPS:=$(if $(findstring yes,$(USE_SYMLINKS)), $(patsubst ../en/%,%,$(wildcard ../en/*.xml))) |
e589db41eb34
Make symlinks behavior more sensible - regenerate symlinks (and documentation)
wight
parents:
11893
diff
changeset
|
39 |
e589db41eb34
Make symlinks behavior more sensible - regenerate symlinks (and documentation)
wight
parents:
11893
diff
changeset
|
40 $(HTMLDIR)/index.html: main.xml $(CHUNK_XSL_DEPS) $(SYMLINKS_DEPS) |
11887 | 41 ifndef HTMLDIR |
42 $(warning $(HTMLDIR)) | |
43 $(warning Error: HTMLDIR not set!!!) | |
44 $(warning Typically this means, that you've run make from a subdir of DOCS/xml.) | |
45 $(error Don't do this!) | |
46 endif | |
11841 | 47 -rm -f $(HTMLDIR)/* |
48 ../xmllint.sh $< | |
49 cp -f $(HTML_STYLESHEET) $(HTMLDIR)/ | |
50 ../xsltproc.sh $(HTMLDIR)/ $(HTML_CHUNK_XSL) $< | |
11188
6dfed0b2a300
Add support for building all-in-one HTML docs. (Files go to DOCS/HTML-single)
lumag
parents:
11045
diff
changeset
|
51 |
12969
e589db41eb34
Make symlinks behavior more sensible - regenerate symlinks (and documentation)
wight
parents:
11893
diff
changeset
|
52 $(HTMLFILE): main.xml $(XSL_DEPS) $(SYMLINKS_DEPS) |
11887 | 53 ifndef HTMLFILE |
54 $(warning Error: HTMLFILE not set!!!) | |
55 $(warning Typically this means, that you've run make from a subdir of DOCS/xml.) | |
56 $(error Don't do this!) | |
57 endif | |
11841 | 58 -rm -f $(HTMLFILE) |
59 ../xmllint.sh $< | |
60 cp -f $(HTML_STYLESHEET) `dirname $(HTMLFILE)` | |
61 ../xsltproc.sh $(HTMLFILE) $(HTML_SINGLE_XSL) $< | |
9674 | 62 |
11817
19919e913e3d
Shiny new build system by Torinthiel, polished and improved by myself.
diego
parents:
11525
diff
changeset
|
63 ../html-chunk.xsl ../html-single.xsl main.xml: |
11326 | 64 cd .. && sh configure |
11045 | 65 |
12969
e589db41eb34
Make symlinks behavior more sensible - regenerate symlinks (and documentation)
wight
parents:
11893
diff
changeset
|
66 $(filter-out main.xml, $(patsubst ../en/%,%, $(wildcard ../en/*.xml))): |
e589db41eb34
Make symlinks behavior more sensible - regenerate symlinks (and documentation)
wight
parents:
11893
diff
changeset
|
67 $(if $(findstring yes,$(USE_SYMLINKS)), ,exit 0;)\ |
11893 | 68 for file in ../en/*.xml ; do \ |
69 if ! test -r `basename $$file` ; then \ | |
70 ln -s $$file `basename $$file` ; \ | |
71 fi; \ | |
72 done | |
73 | |
11045 | 74 distclean: |
11841 | 75 rm -f main.xml |
76 if test "$(USE_SYMLINKS)" = "yes" ; then \ | |
11401
c17fc395142a
now distclean will run on systems which don't have 'readlink'
gabucino
parents:
11326
diff
changeset
|
77 rm -f `find *.xml -type l`; \ |
11310
4e0e3ba55199
Linebreaks added for improved readability, long lines in error message
diego
parents:
11206
diff
changeset
|
78 fi |