doc: Don't delete telemetrum-outline.pdf
[fw/altos] / doc / Makefile
1 #
2 #       http://docbook.sourceforge.net/release/xsl/current/README
3 #
4
5 HTML=altusmetrum.html altos.html
6 PDF=altusmetrum.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) /home/bdale/web/altusmetrum/AltOS/doc/
27         (cd /home/bdale/web/altusmetrum ; \
28          git add /home/bdale/web/altusmetrum/AltOS/doc/* ; \
29          echo "update docs" | \
30          git commit -F - /home/bdale/web/altusmetrum/AltOS/doc/* ; \
31          git push)
32
33 clean:
34         rm -f $(HTML) $(PDF) *.fo
35
36 distclean:
37         rm -f $(HTML) $(PDF) *.fo
38
39 indent:         altusmetrum.xsl
40         xmlindent -i 2 < altusmetrum.xsl > altusmetrum.new
41