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