doc/Makefile
author mpm@selenic.com
Thu, 21 Jul 2005 12:29:19 -0500
changeset 747 c3ce3976ae75
parent 671 efa4a7e2f322
child 1006 b0e581438835
permissions -rw-r--r--
Add -m for rawcommit manifest hash: cf066b609ab4854a731c103f1d456d89cf5e1312

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)