doc: Add internal documentation for AltOS
[fw/altos] / doc / Makefile
1 #
2 #       http://docbook.sourceforge.net/release/xsl/current/README
3 #
4
5 HTML=telemetrum-doc.html altosui-doc.html altos.html
6 PDF=telemetrum-doc.pdf altosui-doc.pdf altos.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 .xsl.html:
15         xsltproc -o $@ $(HTMLSTYLE) $*.xsl
16
17 .xsl.fo:
18         xsltproc -o $@ $(FOSTYLE) $*.xsl
19
20 .fo.pdf:
21         fop -fo $*.fo -pdf $@
22
23 all:    $(HTML) $(PDF)
24
25 publish:        $(DOC)
26         cp $(DOC)telemetrum-doc.html home/bdale/web/altusmetrum/TeleMetrum/doc/
27         (cd /home/bdale/web/altusmetrum ; echo "update docs" | git commit -F - /home/bdale/web/altusmetrum/TeleMetrum/doc/* ; git push)
28
29 clean:
30         rm -f *.html *.pdf *.fo
31
32 distclean:
33         rm -f *.html *.pdf *.fo
34
35 indent:         telemetrum-doc.xsl
36         xmlindent -i 2 < telemetrum-doc.xsl > telemetrum-doc.new
37