6d9ea8ebbbaea375147a8b7a6bafc41b7c46da5c
[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 HTML=altusmetrum.html altos.html telemetry.html $(RELNOTES)
11 PDF=altusmetrum.pdf altos.pdf telemetry.pdf
12 DOC=$(HTML) $(PDF)
13 HTMLSTYLE=/usr/share/xml/docbook/stylesheet/docbook-xsl/html/docbook.xsl
14 FOSTYLE=/usr/share/xml/docbook/stylesheet/docbook-xsl/fo/docbook.xsl
15 PDFSTYLE=
16
17 .SUFFIXES: .xsl .html .fo .pdf
18
19 XSLTFLAGS=--stringparam section.autolabel 1 --xinclude
20
21 .xsl.html:
22         xsltproc $(XSLTFLAGS) -o $@ $(HTMLSTYLE) $*.xsl
23
24 .xsl.fo:
25         xsltproc $(XSLTFLAGS) -o $@ $(FOSTYLE) $*.xsl
26
27 .fo.pdf:
28         fop -fo $*.fo -pdf $@
29
30 all:    $(HTML) $(PDF)
31
32 install:        all
33
34 publish:        $(DOC)
35         cp $(DOC) /home/bdale/web/altusmetrum/AltOS/doc/
36         (cd /home/bdale/web/altusmetrum ; \
37          git add /home/bdale/web/altusmetrum/AltOS/doc/* ; \
38          echo "update docs" | \
39          git commit -F - /home/bdale/web/altusmetrum/AltOS/doc/* ; \
40          git push)
41
42 clean:
43         rm -f $(HTML) $(PDF) *.fo
44
45 distclean:
46         rm -f $(HTML) $(PDF) *.fo
47
48 indent:         altusmetrum.xsl
49         xmlindent -i 2 < altusmetrum.xsl > altusmetrum.new
50