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