80c84409a0f459115de9d0905de22ecf7c667924
[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 install:        all
26
27 publish:        $(DOC)
28         cp $(DOC) /home/bdale/web/altusmetrum/AltOS/doc/
29         (cd /home/bdale/web/altusmetrum ; \
30          git add /home/bdale/web/altusmetrum/AltOS/doc/* ; \
31          echo "update docs" | \
32          git commit -F - /home/bdale/web/altusmetrum/AltOS/doc/* ; \
33          git push)
34
35 clean:
36         rm -f $(HTML) $(PDF) *.fo
37
38 distclean:
39         rm -f $(HTML) $(PDF) *.fo
40
41 indent:         altusmetrum.xsl
42         xmlindent -i 2 < altusmetrum.xsl > altusmetrum.new
43