Update docs for 1.6
[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         release-notes-1.3.2.html \
18         release-notes-1.4.html \
19         release-notes-1.4.1.html \
20         release-notes-1.5.html \
21         release-notes-1.6.html
22
23 PICTURES=\
24         altosui.png \
25         ascent.png \
26         configure-altimeter.png \
27         configure-altosui.png \
28         configure-groundstation.png \
29         configure-pyro.png \
30         descent.png \
31         device-selection.png \
32         easymini-top.jpg \
33         fire-igniter.png \
34         graph-configure.png \
35         graph-map.png \
36         graph.png \
37         graph-stats.png \
38         landed.png \
39         launch-pad.png \
40         load-maps.png \
41         micropeak-app.png \
42         micropeak-back.jpg \
43         micropeak-device-dialog.png \
44         micropeak-dime.jpg \
45         micropeak-download.png \
46         micropeak-graph-configure.png \
47         micropeak-graph.png \
48         micropeak-preferences.png \
49         micropeak-raw-data.png \
50         micropeak-save-dialog.png \
51         micropeak-statistics.png \
52         MicroPeakUSB-2.0-inuse.jpg \
53         MicroPeakUSB-2.0.jpg \
54         scan-channels.png \
55         site-map.png \
56         table.png \
57         telemega-v1.0-top.jpg \
58         telemetrum-v1.1-thside.jpg \
59         telemini-v1-top.jpg \
60         telemini-v2-top.jpg
61
62 SVG=\
63         easymini.svg \
64         telemega.svg \
65         telemetrum.svg \
66         telemini.svg \
67         easymega.svg
68
69 RELNOTES_XSL=$(RELNOTES:.html=.xsl)
70 HTML=altusmetrum.html altos.html telemetry.html companion.html micropeak.html telegps.html $(RELNOTES)
71 PDF=altusmetrum.pdf altos.pdf telemetry.pdf companion.pdf micropeak.pdf telegps.pdf \
72         telemetrum-outline.pdf telemega-outline.pdf easymini-outline.pdf easymega-outline.pdf
73 HTMLSTYLE=/usr/share/xml/docbook/stylesheet/docbook-xsl/html/docbook.xsl
74 FOSTYLE=xorg-fo.xsl
75 TEMPLATES=titlepage.templates.xsl
76 PDFSTYLE=
77 IMAGES=$(PICTURES) $(SVG)
78 DOC=$(HTML) $(PDF) $(IMAGES)
79
80 .SUFFIXES: .xml .xsl .html .pdf
81
82 XSLTFLAGS=--stringparam section.autolabel 1 --xinclude
83
84 .xsl.html:
85         xsltproc $(XSLTFLAGS) -o $@ $(HTMLSTYLE) $*.xsl
86
87 .xsl.pdf:
88         xmlto -x $(FOSTYLE) --with-fop pdf $*.xsl
89
90 .xml.xsl:
91         xsltproc --output $@ /usr/share/xml/docbook/stylesheet/docbook-xsl/template/titlepage.xsl $*.xml
92
93 all:    $(HTML) $(PDF)
94
95 install:        all
96
97 publish:        $(DOC)
98         cp $(DOC) /home/bdale/web/altusmetrum/AltOS/doc/
99         (cd /home/bdale/web/altusmetrum ; \
100          git add /home/bdale/web/altusmetrum/AltOS/doc/* ; \
101          echo "update docs" | \
102          git commit -F - /home/bdale/web/altusmetrum/AltOS/doc/* ; \
103          git push)
104
105 clean:
106         rm -f $(HTML) $(PDF) $(TEMPLATES)
107
108 distclean:
109         rm -f $(HTML) $(PDF)
110
111 altusmetrum.html: $(RELNOTES_XSL) $(IMAGES)
112 altusmetrum.pdf: $(RELNOTES_XSL) $(IMAGES)
113
114 telegps.html: $(RELNOTES_XSL) $(IMAGES)
115 telegps.pdf: $(RELNOTES_XSL) $(IMAGES)
116
117 $(PDF): $(FOSTYLE) $(TEMPLATES)
118
119 indent:         altusmetrum.xsl
120         xmlindent -i 2 < altusmetrum.xsl > altusmetrum.new
121