9674
|
1 #
|
|
2 # Makefile.inc for Makefiles in sub-directories.
|
|
3 #
|
|
4
|
|
5 export SGML_CATALOG_FILES
|
|
6
|
|
7 # Use customized html.xsl file if exists...
|
|
8 ifeq (html.xsl,$(wildcard html.xsl))
|
|
9 HTML_XSL := html.xsl
|
|
10 XSL_DEPS := $(HTML_XSL) ../html.xsl ../html-common.xsl
|
|
11 else
|
|
12 HTML_XSL := ../html.xsl
|
|
13 XSL_DEPS := $(HTML_XSL) ../html-common.xsl
|
|
14 endif
|
|
15
|
|
16 # Fall back to the default HTML stylesheet if not specified.
|
|
17 HTML_STYLESHEET ?= ../default.css
|
|
18
|
|
19 # This is the main target...
|
|
20 $(HTMLDIR)/index.html: documentation.xml $(XSL_DEPS)
|
|
21 -rm -f $(HTMLDIR)/*
|
|
22 $(XMLLINT) --noout --noent --postvalid --catalogs $<
|
|
23 $(XSLTPROC) --catalogs -o $(HTMLDIR)/ $(HTML_XSL) $<
|
|
24 cp $(HTML_STYLESHEET) $(HTMLDIR)/
|
|
25
|
|
26 ../html.xsl:
|
|
27 sh ../gen-html.xsl.sh $(CHUNK_XSL) > $@
|