view doc/Makefile @ 685:79fb7032739f

Added tag 0.6b for changeset 4ccf3de52989b14c3d84e1097f59e39a992e00bd
author Matt Mackall <mpm@selenic.com>
date Mon, 11 Jul 2005 21:58:57 -0800
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)