view DOCS/xml/Makefile.inc @ 10258:d9371eecb619

-ao alsa9:hw:0,0 fix by Wojtek Kaniewski <wojtekka@bydg.pdi.net>
author alex
date Sun, 08 Jun 2003 04:03:59 +0000
parents 970a95a4d856
children 3c0e1b182fbc
line wrap: on
line source

#
# 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) > $@