diff docs/rules.make @ 16:2f98cf1558e1

Added building of manual from docbook source to Makefile
author lost@l-w.ca
date Sat, 22 Jan 2011 17:00:15 -0700
parents
children 06c4a2b72b24
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/docs/rules.make	Sat Jan 22 17:00:15 2011 -0700
@@ -0,0 +1,22 @@
+dirname := $(dir $(lastword $(MAKEFILE_LIST)))
+
+.PHONY: manual
+manual: manual-html manual-htmlm manual-pdf
+
+.PHONY: manual-html
+manual-html: $(dirname)/manual/manual.html
+
+.PHONY: manual-htmlm
+manual-htmlm: $(dirname)/manual/index.html
+
+.PHONY: manual-pdf
+manual-pdf: $(dirname)/manual/manual.pdf
+
+$(dirname)/manual/manual.html: $(dirname)/manual.docbook.sgml
+	docbook2html -u $(dirname)/manual.docbook.sgml && mv manual.docbook.html $(dirname)/manual/manual.html
+
+$(dirname)/manual/index.html: $(dirname)/manual.docbook.sgml
+	docbook2html -o $(dirname)/manual $(dirname)manual.docbook.sgml
+
+$(dirname)/manual/manual.pdf: $(dirname)/manual.docbook.sgml
+	docbook2pdf -u $(dirname)manual.docbook.sgml && mv manual.docbook.pdf $(dirname)/manual/manual.pdf