summaryrefslogtreecommitdiffstats
path: root/DOCS/xml/Makefile
diff options
context:
space:
mode:
authordiego <diego@b3059339-0415-0410-9bf9-f77b7e298cf2>2003-06-18 17:37:36 +0000
committerdiego <diego@b3059339-0415-0410-9bf9-f77b7e298cf2>2003-06-18 17:37:36 +0000
commitdc0adf6e2081c35cf18c84f39c6c0740faf521fa (patch)
tree400da05c8fda25793603ba84c4f8ee66f7b9fc63 /DOCS/xml/Makefile
parent28df7aaeff547a22328f7f74cbfeeb4d72ba2de5 (diff)
downloadmpv-dc0adf6e2081c35cf18c84f39c6c0740faf521fa.tar.bz2
mpv-dc0adf6e2081c35cf18c84f39c6c0740faf521fa.tar.xz
XML autoconfiguration by Dmitry Baryshkov <lumag@qnc.ru> with some
modifications and improvements by me. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@10310 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'DOCS/xml/Makefile')
-rw-r--r--DOCS/xml/Makefile69
1 files changed, 12 insertions, 57 deletions
diff --git a/DOCS/xml/Makefile b/DOCS/xml/Makefile
index 8cd9c83d51..98b91270da 100644
--- a/DOCS/xml/Makefile
+++ b/DOCS/xml/Makefile
@@ -1,67 +1,26 @@
# Makefile for generating the HTML documentation
-#####[ Configuration ]##################################################
-
-# The xsltproc program.
-XSLTPROC = xsltproc
-
-# Another xslt converter.
-# If you want to use it, change also USE_SAXON to 1 (below)
-# Probably you must also change the path to saxon.jar.
-USE_SAXON = 0
-SAXON_COMMAND = java -cp /usr/share/java/saxon.jar com.icl.saxon.StyleSheet
-
-# The xmllint program.
-XMLLINT = xmllint
-
-# A colon separated list of catalog entry files.
-# Without this properly set up, xmllint and xsltproc might be unable
-# to find the DTDs for the system identifiers specified in the XML files.
-# If the SGML_CATALOG_FILES environment variable is not set, list one
-# or more catalogs here.
-#
-# on debian (potato?) systems, maybe others
-#SGML_CATALOG_FILES ?= /etc/sgml/catalog
-#
-# on Mandrake (9.0?) systems, maybe others
-SGML_CATALOG_FILES ?= /usr/share/sgml/docbook/xml-dtd-4.1.2/xmlcatalog
-#SGML_CATALOG_FILES ?= /usr/share/apps/ksgmltools2/customization/en/catalog
-
-# Full path of the "chunker" DocBook XSL stylesheet used to generate
-# the HTML files.
-#
-# on debian (potato?)
-#CHUNK_XSL = /usr/share/sgml/docbook/stylesheet/xsl/nwalsh/html/chunk.xsl
-#
-# on Mandrake (9.0?) systems, maybe others
-CHUNK_XSL = /usr/share/sgml/docbook/yelp/docbook/html/chunk.xsl
-
# List of subdirectories to be processed.
SUBDIRS = en fr
-# Here all generated html's go
+# Generated HTML files go here.
HTML_TOP = ../HTML
-#####[ End of configuration ]###########################################
-export CHUNK_XSL SGML_CATALOG_FILES XMLLINT XSLTPROC SAXON_COMMAND USE_SAXON
+.PHONY: all
+all: build-html
-.PHONY: no-target
-no-target:
- @echo "What to make?"
- @echo
- @echo "Targets"
- @echo "*******"
+.PHONY: help
+help:
+ @echo "Targets:"
+ @echo "********"
@echo "all : Build everything (same as build-html for now)."
@echo "build-html: Build HTML documentation."
@echo "clean-html: Purge the 'HTML' directory."
@echo "distclean : Remove ALL generated files."
-.PHONY: all
-all: build-html
-
.PHONY: build-html
-build-html:
+build-html: xsltproc.sh
test -d $(HTML_TOP) || mkdir $(HTML_TOP)
for d in $(SUBDIRS); do\
test -f $$d/Makefile &&\
@@ -69,17 +28,13 @@ build-html:
if $(MAKE) HTMLDIR=../$(HTML_TOP)/$$d -C $$d; then :; else exit 1; fi;\
done
-.PHONY: test
-test:
- @if command -v $(XSLTPROC) >/dev/null; then :; else exit 1; fi
- @if command -v $(XMLLINT) >/dev/null; then :; else exit 1; fi
- @test -f $(CHUNK_XSL) || (echo "file not found: $(CHUNK_XSL)"; exit 1)
- @echo "All tests passed."
-
.PHONY: clean-html
clean-html:
-rm -rf $(HTML_TOP)
.PHONY: distclean
distclean: clean-html
- -rm -f html.xsl
+ -rm -f html.xsl xsltproc.sh xmllint.sh
+
+xsltproc.sh: configure
+ ./configure