doc: Add version 1.2 release notes
[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
15 RELNOTES_XSL=$(RELNOTES:.html=.xsl)
16 HTML=altusmetrum.html altos.html telemetry.html companion.html micropeak.html $(RELNOTES)
17 PDF=altusmetrum.pdf altos.pdf telemetry.pdf companion.pdf micropeak.pdf
18 DOC=$(HTML) $(PDF)
19 HTMLSTYLE=/usr/share/xml/docbook/stylesheet/docbook-xsl/html/docbook.xsl
20 FOSTYLE=/usr/share/xml/docbook/stylesheet/docbook-xsl/fo/docbook.xsl
21 PDFSTYLE=
22 IMAGES=telemetrum.svg telemini.svg
23
24 .SUFFIXES: .xsl .html .fo .pdf
25
26 XSLTFLAGS=--stringparam section.autolabel 1 --xinclude
27
28 .xsl.html:
29         xsltproc $(XSLTFLAGS) -o $@ $(HTMLSTYLE) $*.xsl
30
31 .xsl.fo:
32         xsltproc $(XSLTFLAGS) -o $@ $(FOSTYLE) $*.xsl
33
34 .fo.pdf:
35         fop -fo $*.fo -pdf $@
36
37 all:    $(HTML) $(PDF)
38
39 install:        all
40
41 publish:        $(DOC)
42         cp $(DOC) /home/bdale/web/altusmetrum/AltOS/doc/
43         (cd /home/bdale/web/altusmetrum ; \
44          git add /home/bdale/web/altusmetrum/AltOS/doc/* ; \
45          echo "update docs" | \
46          git commit -F - /home/bdale/web/altusmetrum/AltOS/doc/* ; \
47          git push)
48
49 clean:
50         rm -f $(HTML) $(PDF) *.fo
51
52 distclean:
53         rm -f $(HTML) $(PDF) *.fo
54
55 altusmetrum.html: $(RELNOTES_XSL) $(IMAGES)
56 altusmetrum.fo: $(RELNOTES_XSL) $(IMAGES)
57
58 indent:         altusmetrum.xsl
59         xmlindent -i 2 < altusmetrum.xsl > altusmetrum.new
60