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