view docs/rules.make @ 66:0359d9f1dfca

Added tag lwtools-4.0 for changeset 05f1a31f8f1e
author lost@l-w.ca
date Fri, 08 Apr 2011 21:38:15 -0600
parents 06c4a2b72b24
children
line wrap: on
line source

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 -o $(dirname) -u $(dirname)/manual.docbook.sgml && mv $(dirname)/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 -o $(dirname) -u $(dirname)manual.docbook.sgml && mv $(dirname)/manual.docbook.pdf $(dirname)/manual/manual.pdf && rm -f $(dirname)/manual.docbook.html