/
/Makefile
1 #
2 # Dependancies:
3 # - xmllint
4 # - saxon
5 # - docbook
6 # - xslthl
7 #
8 # Debian: download the xslthl jar into the doc/ directory; install the remaining dependancies with apt.
9 #
10
11 SAXON_JAR := /usr/share/java/saxon.jar
12 XSLTHL_JAR := $(firstword $(wildcard xslthl*.jar))
13 CLASSPATH := "$(SAXON_JAR):$(XSLTHL_JAR)"
14 SAXON := java -classpath $(CLASSPATH) \
15 -Dxslthl.config="file://$(realpath xslthl-config.xml)" \
16 com.icl.saxon.StyleSheet
17
18 all: manual.html index.html
19
20 DEPENDANCIES := *.xml *.xsl ../qt.examples/src/*.lisp ../kde.examples/src/*.lisp *.dtd
21
22 # validate & process xincludes
23 manual.tmp: $(DEPENDANCIES)
24 xmllint --xinclude --postvalid manual.xml > manual.tmp
25
26
27 manual.html: manual.tmp
28 $(SAXON) -o manual.html manual.tmp manual.xsl
29
30
31 index.html: manual.tmp
32 $(SAXON) manual.tmp chunk.xsl
33
34 .PHONY: clean
35 clean:
36 rm -f -- *.html *.tmp