view doc/Makefile @ 972:0bc72d91aeda

Added tag 0.6c for changeset eac9c8efcd9bd8244e72fb6821f769f450457a32
author mpm@selenic.com
date Sat, 20 Aug 2005 01:46:57 -0700
parents efa4a7e2f322
children b0e581438835
line wrap: on
line source

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)