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