summaryrefslogtreecommitdiff
path: root/doc/Makefile
blob: 65917ea259cf8206d5e3deaec0a0b3c811ed02c7 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#
#	http://docbook.sourceforge.net/release/xsl/current/README
#

HTML=telemetrum-doc.html altos.html
PDF=telemetrum-doc.pdf altos.pdf
DOC=$(HTML) $(PDF)
HTMLSTYLE=/usr/share/xml/docbook/stylesheet/docbook-xsl/html/docbook.xsl
FOSTYLE=/usr/share/xml/docbook/stylesheet/docbook-xsl/fo/docbook.xsl
PDFSTYLE=

.SUFFIXES: .xsl .html .fo .pdf

.xsl.html:
	xsltproc -o $@ $(HTMLSTYLE) $*.xsl

.xsl.fo:
	xsltproc -o $@ $(FOSTYLE) $*.xsl

.fo.pdf:
	fop -fo $*.fo -pdf $@

all:	$(HTML) $(PDF)

publish:	$(DOC)
	cp $(DOC)telemetrum-doc.html home/bdale/web/altusmetrum/TeleMetrum/doc/
	(cd /home/bdale/web/altusmetrum ; echo "update docs" | git commit -F - /home/bdale/web/altusmetrum/TeleMetrum/doc/* ; git push)

clean:
	rm -f *.html *.pdf *.fo

distclean:
	rm -f *.html *.pdf *.fo

indent:		telemetrum-doc.xsl
	xmlindent -i 2 < telemetrum-doc.xsl > telemetrum-doc.new