comparison 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
comparison
equal deleted inserted replaced
15:ed5cbe83cbd3 16:2f98cf1558e1
1 dirname := $(dir $(lastword $(MAKEFILE_LIST)))
2
3 .PHONY: manual
4 manual: manual-html manual-htmlm manual-pdf
5
6 .PHONY: manual-html
7 manual-html: $(dirname)/manual/manual.html
8
9 .PHONY: manual-htmlm
10 manual-htmlm: $(dirname)/manual/index.html
11
12 .PHONY: manual-pdf
13 manual-pdf: $(dirname)/manual/manual.pdf
14
15 $(dirname)/manual/manual.html: $(dirname)/manual.docbook.sgml
16 docbook2html -u $(dirname)/manual.docbook.sgml && mv manual.docbook.html $(dirname)/manual/manual.html
17
18 $(dirname)/manual/index.html: $(dirname)/manual.docbook.sgml
19 docbook2html -o $(dirname)/manual $(dirname)manual.docbook.sgml
20
21 $(dirname)/manual/manual.pdf: $(dirname)/manual.docbook.sgml
22 docbook2pdf -u $(dirname)manual.docbook.sgml && mv manual.docbook.pdf $(dirname)/manual/manual.pdf