altos: Shrink ao_cmd_put16, ao_cmd_hex and ao_cmd
[fw/altos] / doc / Makefile
1 #
2 #       http://docbook.sourceforge.net/release/xsl/current/README
3 #
4
5 HTML=altusmetrum.html altos.html telemetry.html
6 PDF=altusmetrum.pdf altos.pdf telemetry.pdf
7 DOC=$(HTML) $(PDF)
8 HTMLSTYLE=/usr/share/xml/docbook/stylesheet/docbook-xsl/html/docbook.xsl
9 FOSTYLE=/usr/share/xml/docbook/stylesheet/docbook-xsl/fo/docbook.xsl
10 PDFSTYLE=
11
12 .SUFFIXES: .xsl .html .fo .pdf
13
14 XSLTFLAGS=--stringparam section.autolabel 1
15
16 .xsl.html:
17         xsltproc $(XSLTFLAGS) -o $@ $(HTMLSTYLE) $*.xsl
18
19 .xsl.fo:
20         xsltproc $(XSLTFLAGS) -o $@ $(FOSTYLE) $*.xsl
21
22 .fo.pdf:
23         fop -fo $*.fo -pdf $@
24
25 all:    $(HTML) $(PDF)
26
27 install:        all
28
29 publish:        $(DOC)
30         cp $(DOC) /home/bdale/web/altusmetrum/AltOS/doc/
31         (cd /home/bdale/web/altusmetrum ; \
32          git add /home/bdale/web/altusmetrum/AltOS/doc/* ; \
33          echo "update docs" | \
34          git commit -F - /home/bdale/web/altusmetrum/AltOS/doc/* ; \
35          git push)
36
37 clean:
38         rm -f $(HTML) $(PDF) *.fo
39
40 distclean:
41         rm -f $(HTML) $(PDF) *.fo
42
43 indent:         altusmetrum.xsl
44         xmlindent -i 2 < altusmetrum.xsl > altusmetrum.new
45