Keep tables together on a page
[fw/altos] / doc / Makefile
1 #
2 #       http://docbook.sourceforge.net/release/xsl/current/README
3 #
4
5 RELNOTES=\
6         release-notes-0.7.1.html \
7         release-notes-0.8.html \
8         release-notes-0.9.html \
9         release-notes-0.9.2.html \
10         release-notes-1.0.1.html \
11         release-notes-1.1.html \
12         release-notes-1.1.1.html \
13         release-notes-1.2.html \
14         release-notes-1.2.1.html \
15         release-notes-1.3.html
16
17 RELNOTES_XSL=$(RELNOTES:.html=.xsl)
18 HTML=altusmetrum.html altos.html telemetry.html companion.html micropeak.html $(RELNOTES)
19 PDF=altusmetrum.pdf altos.pdf telemetry.pdf companion.pdf micropeak.pdf
20 DOC=$(HTML) $(PDF)
21 HTMLSTYLE=/usr/share/xml/docbook/stylesheet/docbook-xsl/html/docbook.xsl
22 FOSTYLE=xorg-fo.xsl
23 PDFSTYLE=
24 IMAGES=telemetrum.svg telemini.svg
25
26 .SUFFIXES: .xsl .html .pdf
27
28 XSLTFLAGS=--stringparam section.autolabel 1 --xinclude
29
30 .xsl.html:
31         xsltproc $(XSLTFLAGS) -o $@ $(HTMLSTYLE) $*.xsl
32
33 .xsl.pdf:
34         xmlto -x $(FOSTYLE) --with-fop pdf $*.xsl
35
36 all:    $(HTML) $(PDF)
37
38 install:        all
39
40 publish:        $(DOC)
41         cp $(DOC) /home/bdale/web/altusmetrum/AltOS/doc/
42         (cd /home/bdale/web/altusmetrum ; \
43          git add /home/bdale/web/altusmetrum/AltOS/doc/* ; \
44          echo "update docs" | \
45          git commit -F - /home/bdale/web/altusmetrum/AltOS/doc/* ; \
46          git push)
47
48 clean:
49         rm -f $(HTML) $(PDF)
50
51 distclean:
52         rm -f $(HTML) $(PDF)
53
54 altusmetrum.html: $(RELNOTES_XSL) $(IMAGES)
55 altusmetrum.pdf: $(RELNOTES_XSL) $(IMAGES)
56
57 $(PDF): $(FOSTYLE)
58
59 indent:         altusmetrum.xsl
60         xmlindent -i 2 < altusmetrum.xsl > altusmetrum.new
61