summaryrefslogtreecommitdiffstats
path: root/DOCS/xml/Makefile.inc
diff options
context:
space:
mode:
authordiego <diego@b3059339-0415-0410-9bf9-f77b7e298cf2>2003-10-21 11:07:02 +0000
committerdiego <diego@b3059339-0415-0410-9bf9-f77b7e298cf2>2003-10-21 11:07:02 +0000
commit97fad3725b1024d35b720f4e0aba876071dbc002 (patch)
treec8df4b4d76d2ae6652621deb131a865a7c9a706f /DOCS/xml/Makefile.inc
parent1f5e696e26edbf69327b6e405c76c07a2e32cbb5 (diff)
downloadmpv-97fad3725b1024d35b720f4e0aba876071dbc002.tar.bz2
mpv-97fad3725b1024d35b720f4e0aba876071dbc002.tar.xz
html.xsl ---> html-single.xsl + more consistency + small fixes
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@11207 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'DOCS/xml/Makefile.inc')
-rw-r--r--DOCS/xml/Makefile.inc34
1 files changed, 17 insertions, 17 deletions
diff --git a/DOCS/xml/Makefile.inc b/DOCS/xml/Makefile.inc
index c4de7b002f..c451fb1d47 100644
--- a/DOCS/xml/Makefile.inc
+++ b/DOCS/xml/Makefile.inc
@@ -2,20 +2,8 @@
# Makefile.inc for Makefiles in subdirectories.
#
-# Use customized html.xsl and/or html-chunk.xsl file if they exist...
+# Use customized html-chunk.xsl and/or html-single.xsl file if they exist...
# Also add html-common.xsl to depends if it exists.
-ifeq (html.xsl,$(wildcard html.xsl))
-HTML_XSL := html.xsl
-ifeq (html-common.xsl,$(wildcard html-common.xsl))
-XSL_DEPS := $(HTML_XSL) html-common.xsl ../html.xsl ../html-common.xsl
-else
-XSL_DEPS := $(HTML_XSL) html-common.xsl ../html.xsl ../html-common.xsl
-endif
-else
-HTML_XSL := ../html.xsl
-XSL_DEPS := $(HTML_XSL) ../html-common.xsl
-endif
-
ifeq (html-chunk.xsl,$(wildcard html-chunk.xsl))
HTML_CHUNK_XSL := html-chunk.xsl
ifeq (html-common.xsl,$(wildcard html-common.xsl))
@@ -28,13 +16,25 @@ HTML_CHUNK_XSL := ../html-chunk.xsl
CHUNK_XSL_DEPS := $(HTML_CHUNK_XSL) ../html-common.xsl
endif
+ifeq (html-single.xsl,$(wildcard html-single.xsl))
+HTML_SINGLE_XSL := html-single.xsl
+ifeq (html-common.xsl,$(wildcard html-common.xsl))
+XSL_DEPS := $(HTML_SINGLE_XSL) html-common.xsl ../html-single.xsl ../html-common.xsl
+else
+XSL_DEPS := $(HTML_SINGLE_XSL) html-common.xsl ../html-single.xsl ../html-common.xsl
+endif
+else
+HTML_SINGLE_XSL := ../html-single.xsl
+XSL_DEPS := $(HTML_SINGLE_XSL) ../html-common.xsl
+endif
+
# Fall back to the default HTML stylesheet if none is specified.
HTML_STYLESHEET ?= ../default.css
# This is the main target...
-all: html html-chunked
-html: $(HTMLFILE)
+all: html-chunked html-single
html-chunked: $(HTMLDIR)/index.html
+html-single: $(HTMLFILE)
$(HTMLDIR)/index.html: documentation.xml $(CHUNK_XSL_DEPS)
@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
@@ -50,9 +50,9 @@ $(HTMLFILE): documentation.xml $(XSL_DEPS)
-rm -f $(HTMLFILE)
../xmllint.sh $<
cp -f $(HTML_STYLESHEET) `dirname $(HTMLFILE)`
- ../xsltproc.sh $(HTMLFILE) $(HTML_XSL) $<
+ ../xsltproc.sh $(HTMLFILE) $(HTML_SINGLE_XSL) $<
-../html.xsl:
+../html-single.xsl:
cd .. && sh configure
distclean: