summaryrefslogtreecommitdiff
path: root/doc/Makefile
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2010-11-24 21:00:52 -0800
committerKeith Packard <keithp@keithp.com>2010-11-24 21:00:52 -0800
commit51c7741040d95c5deece939dae5e4136cc04afc4 (patch)
tree96631ee5aa9fd0c8c45f019ff154cc4fc8ca85d0 /doc/Makefile
parentd1dbe3b69e6f95ef8ecd4cf959863b922ab47c66 (diff)
parent4e47c44d335276cf0dc5ed3a0756e50c98c1b9b9 (diff)
Merge branch 'buttonbox'
Conflicts: doc/telemetrum-doc.xsl Pull the buttbox version of the docs in as it had been updated. Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'doc/Makefile')
-rw-r--r--doc/Makefile37
1 files changed, 20 insertions, 17 deletions
diff --git a/doc/Makefile b/doc/Makefile
index 238cefb0..65917ea2 100644
--- a/doc/Makefile
+++ b/doc/Makefile
@@ -2,32 +2,35 @@
# http://docbook.sourceforge.net/release/xsl/current/README
#
-all: telemetrum-doc.html telemetrum-doc.pdf
+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=
-publish: all
- cp telemetrum-doc.html \
- telemetrum-doc.pdf /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)
+.SUFFIXES: .xsl .html .fo .pdf
+
+.xsl.html:
+ xsltproc -o $@ $(HTMLSTYLE) $*.xsl
+.xsl.fo:
+ xsltproc -o $@ $(FOSTYLE) $*.xsl
-telemetrum-doc.html: telemetrum-doc.xsl
- xsltproc -o telemetrum-doc.html \
- /usr/share/xml/docbook/stylesheet/docbook-xsl/html/docbook.xsl \
- telemetrum-doc.xsl
+.fo.pdf:
+ fop -fo $*.fo -pdf $@
-telemetrum-doc.fo: telemetrum-doc.xsl
- xsltproc -o telemetrum-doc.fo \
- /usr/share/xml/docbook/stylesheet/docbook-xsl/fo/docbook.xsl \
- telemetrum-doc.xsl
+all: $(HTML) $(PDF)
-telemetrum-doc.pdf: telemetrum-doc.fo
- fop -fo telemetrum-doc.fo -pdf telemetrum-doc.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 telemetrum-doc.html telemetrum-doc.pdf telemetrum-doc.fo
+ rm -f *.html *.pdf *.fo
distclean:
- rm -f telemetrum-doc.html telemetrum-doc.pdf telemetrum-doc.fo
+ rm -f *.html *.pdf *.fo
indent: telemetrum-doc.xsl
xmlindent -i 2 < telemetrum-doc.xsl > telemetrum-doc.new