1
0
mirror of https://github.com/mpv-player/mpv synced 2025-01-18 13:14:36 +00:00
mpv/DOCS/xml/Makefile.inc
lumag 409cfd1eb6 Add support for the Saxon XSLT Processor.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@10026 b3059339-0415-0410-9bf9-f77b7e298cf2
2003-04-30 16:41:14 +00:00

32 lines
817 B
Makefile

#
# Makefile.inc for Makefiles in sub-directories.
#
export SGML_CATALOG_FILES
# Use customized html.xsl file if exists...
ifeq (html.xsl,$(wildcard html.xsl))
HTML_XSL := html.xsl
XSL_DEPS := $(HTML_XSL) ../html.xsl ../html-common.xsl
else
HTML_XSL := ../html.xsl
XSL_DEPS := $(HTML_XSL) ../html-common.xsl
endif
# Fall back to the default HTML stylesheet if not specified.
HTML_STYLESHEET ?= ../default.css
# This is the main target...
$(HTMLDIR)/index.html: documentation.xml $(XSL_DEPS)
-rm -f $(HTMLDIR)/*
$(XMLLINT) --noout --noent --postvalid --catalogs $<
cp $(HTML_STYLESHEET) $(HTMLDIR)/
ifeq (0,$(USE_SAXON))
$(XSLTPROC) --catalogs -o $(HTMLDIR)/ $(HTML_XSL) $<
else
cd $(HTMLDIR) && $(SAXON_COMMAND) $(CURDIR)/$< $(CURDIR)/$(HTML_XSL)
endif
../html.xsl:
sh ../gen-html.xsl.sh $(CHUNK_XSL) > $@