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