Mercurial > hg-stable
view doc/Makefile @ 1819:d657bfdc06c4
Regenerate hg.1.gendoc.txt if commands.py changed.
author | Thomas Arendsen Hein <thomas@intevation.de> |
---|---|
date | Wed, 01 Mar 2006 09:19:27 +0100 |
parents | 7956893e8458 |
children | 9ef0850b9b68 |
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: ../mercurial/commands.py 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)