view doc/Makefile @ 1818:9bbc7b304c34

Make the deprecated rawcommit an alias of debugrawcommit. This way it doesn't show up in the non-debug help.
author Thomas Arendsen Hein <thomas@intevation.de>
date Wed, 01 Mar 2006 09:14:25 +0100
parents 7956893e8458
children d657bfdc06c4
line wrap: on
line source

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

all: man html

man: $(MAN)

html: $(HTML)

hg.1.txt: hg.1.gendoc.txt
	touch hg.1.txt

hg.1.gendoc.txt:
	python gendoc.py > $@

%: %.xml
	xmlto man $*.xml

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

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

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