doc: Update for 1.3.1
[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         release-notes-1.3.1.html
17
18 PICTURES=\
19         altosui.png \
20         ascent.png \
21         configure-altimeter.png \
22         configure-altosui.png \
23         configure-groundstation.png \
24         configure-pyro.png \
25         descent.png \
26         device-selection.png \
27         easymini-top.jpg \
28         fire-igniter.png \
29         graph-configure.png \
30         graph-map.png \
31         graph.png \
32         graph-stats.png \
33         landed.png \
34         launch-pad.png \
35         load-maps.png \
36         scan-channels.png \
37         site-map.png \
38         table.png \
39         telemega-v1.0-top.jpg \
40         telemetrum-v1.1-thside.jpg \
41         telemini-v1-top.jpg \
42         telemini-v2-top.jpg
43 SVG=\
44         easymini-outline.svg \
45         telemega-outline.svg \
46         telemetrum.svg \
47         telemini.svg
48
49 RELNOTES_XSL=$(RELNOTES:.html=.xsl)
50 HTML=altusmetrum.html altos.html telemetry.html companion.html micropeak.html $(RELNOTES)
51 PDF=altusmetrum.pdf altos.pdf telemetry.pdf companion.pdf micropeak.pdf
52 HTMLSTYLE=/usr/share/xml/docbook/stylesheet/docbook-xsl/html/docbook.xsl
53 FOSTYLE=xorg-fo.xsl
54 PDFSTYLE=
55 IMAGES=$(PICTURES) $(SVG)
56 DOC=$(HTML) $(PDF) $(PICTURES)
57
58 .SUFFIXES: .xsl .html .pdf
59
60 XSLTFLAGS=--stringparam section.autolabel 1 --xinclude
61
62 .xsl.html:
63         xsltproc $(XSLTFLAGS) -o $@ $(HTMLSTYLE) $*.xsl
64
65 .xsl.pdf:
66         xmlto -x $(FOSTYLE) --with-fop pdf $*.xsl
67
68 all:    $(HTML) $(PDF)
69
70 install:        all
71
72 publish:        $(DOC)
73         cp $(DOC) /home/bdale/web/altusmetrum/AltOS/doc/
74         (cd /home/bdale/web/altusmetrum ; \
75          git add /home/bdale/web/altusmetrum/AltOS/doc/* ; \
76          echo "update docs" | \
77          git commit -F - /home/bdale/web/altusmetrum/AltOS/doc/* ; \
78          git push)
79
80 clean:
81         rm -f $(HTML) $(PDF)
82
83 distclean:
84         rm -f $(HTML) $(PDF)
85
86 altusmetrum.html: $(RELNOTES_XSL) $(IMAGES)
87 altusmetrum.pdf: $(RELNOTES_XSL) $(IMAGES)
88
89 $(PDF): $(FOSTYLE)
90
91 indent:         altusmetrum.xsl
92         xmlindent -i 2 < altusmetrum.xsl > altusmetrum.new
93