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