|
a/src/doc/user/Makefile |
|
b/src/doc/user/Makefile |
|
|
1 |
# Wherever docbook.xsl and chunk.xsl live
|
|
|
2 |
# Fbsd
|
|
|
3 |
#XSLDIR="/usr/local/share/xsl/docbook/"
|
|
|
4 |
# Mac
|
|
|
5 |
#XSLDIR="/opt/local/share/xsl/docbook-xsl/"
|
|
|
6 |
#Linux
|
|
|
7 |
XSLDIR="/usr/share/xml/docbook/stylesheet/docbook-xsl/"
|
|
|
8 |
|
|
|
9 |
|
|
|
10 |
# Options common to the single-file and chunked versions
|
|
|
11 |
commonoptions=--stringparam section.autolabel 1 \
|
|
|
12 |
--stringparam section.autolabel.max.depth 3 \
|
|
|
13 |
--stringparam section.label.includes.component.label 1 \
|
|
|
14 |
--stringparam autotoc.label.in.hyperlink 0 \
|
|
|
15 |
--stringparam abstract.notitle.enabled 1 \
|
|
|
16 |
--stringparam html.stylesheet docbook-xsl.css \
|
|
|
17 |
--stringparam generate.toc "book toc,title,figure,table,example,equation"
|
|
|
18 |
|
|
|
19 |
|
|
|
20 |
all: usermanual.html index.html usermanual.pdf
|
|
|
21 |
|
1 |
usermanual.html: usermanual.xml
|
22 |
usermanual.html: usermanual.xml
|
2 |
sh xmlmake.sh
|
23 |
xsltproc ${commonoptions} \
|
|
|
24 |
-o tmpfile.html "${XSLDIR}/html/docbook.xsl" usermanual.xml
|
|
|
25 |
-tidy -indent tmpfile.html > usermanual.html
|
|
|
26 |
|
|
|
27 |
index.html: usermanual.xml
|
|
|
28 |
xsltproc ${commonoptions} \
|
|
|
29 |
--stringparam use.id.as.filename 1 \
|
|
|
30 |
--stringparam root.filename index \
|
|
|
31 |
"${XSLDIR}/html/chunk.xsl" usermanual.xml
|
|
|
32 |
|
|
|
33 |
usermanual.pdf: usermanual.xml
|
|
|
34 |
dblatex usermanual.xml
|
3 |
|
35 |
|
4 |
clean:
|
36 |
clean:
|
5 |
rm -f RCL.*.html usermanual.pdf usermanual.html index.html
|
37 |
rm -f RCL.*.html usermanual.pdf usermanual.html index.html tmpfile.html
|