doc/Makefile
author mark.williamson@cl.cam.ac.uk
Sun, 14 Aug 2005 12:30:01 -0800
changeset 899 aa5b726e9619
parent 671 efa4a7e2f322
child 1006 b0e581438835
permissions -rw-r--r--
Add '-' support to the commit logfile option to read message from stdin.

SOURCES=$(wildcard *.[0-9].txt)
MAN=$(SOURCES:%.txt=%)
HTML=$(SOURCES:%.txt=%.html)

all: man

man: $(MAN)

html: $(HTML)

%: %.xml
	xmlto man $*.xml

%.xml: %.txt
	asciidoc -d manpage -b docbook $*.txt

%.html: %.txt
	asciidoc -b html $*.txt

clean:
	$(RM) $(MAN) $(MAN:%=%.xml) $(MAN:%=%.html)