altosdroid: Auto tab changing
[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.1.html \
12         release-notes-1.1.html
13
14 RELNOTES_XSL=$(RELNOTES:.html=.xsl)
15 HTML=altusmetrum.html altos.html telemetry.html companion.html micropeak.html $(RELNOTES)
16 PDF=altusmetrum.pdf altos.pdf telemetry.pdf companion.pdf micropeak.pdf
17 DOC=$(HTML) $(PDF)
18 HTMLSTYLE=/usr/share/xml/docbook/stylesheet/docbook-xsl/html/docbook.xsl
19 FOSTYLE=/usr/share/xml/docbook/stylesheet/docbook-xsl/fo/docbook.xsl
20 PDFSTYLE=
21 IMAGES=telemetrum.svg telemini.svg
22
23 .SUFFIXES: .xsl .html .fo .pdf
24
25 XSLTFLAGS=--stringparam section.autolabel 1 --xinclude
26
27 .xsl.html:
28         xsltproc $(XSLTFLAGS) -o $@ $(HTMLSTYLE) $*.xsl
29
30 .xsl.fo:
31         xsltproc $(XSLTFLAGS) -o $@ $(FOSTYLE) $*.xsl
32
33 .fo.pdf:
34         fop -fo $*.fo -pdf $@
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) *.fo
50
51 distclean:
52         rm -f $(HTML) $(PDF) *.fo
53
54 altusmetrum.html: $(RELNOTES_XSL) $(IMAGES)
55 altusmetrum.fo: $(RELNOTES_XSL) $(IMAGES)
56
57 indent:         altusmetrum.xsl
58         xmlindent -i 2 < altusmetrum.xsl > altusmetrum.new
59