view doc/Makefile @ 924:ab681ea2857e

updated help text and added manpage section for hg paths Index: hg/doc/hg.1.txt ===================================================================
author TK Soh <teekaysoh@yahoo.com>
date Tue, 16 Aug 2005 17:30:41 -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)