# HG changeset patch # User Martin Geisler # Date 2009-11-02 20:38:42 # Node ID 8374f26727de258505f656ed46963df12fe53de9 # Parent a9d15bf7efe29a82d8ec7e7050f3cf8f1998856d doc/Makefile: add help/*.txt as a dependency diff --git a/doc/Makefile b/doc/Makefile --- a/doc/Makefile +++ b/doc/Makefile @@ -1,6 +1,7 @@ SOURCES=$(wildcard *.[0-9].txt) MAN=$(SOURCES:%.txt=%) HTML=$(SOURCES:%.txt=%.html) +GENDOC=gendoc.py ../mercurial/commands.py ../mercurial/help.py ../help/*.txt PREFIX=/usr/local MANDIR=$(PREFIX)/share/man INSTALL=install -c -m 644 @@ -16,7 +17,7 @@ html: $(HTML) hg.1.txt: hg.1.gendoc.txt touch hg.1.txt -hg.1.gendoc.txt: gendoc.py ../mercurial/commands.py ../mercurial/help.py +hg.1.gendoc.txt: $(GENDOC) ${PYTHON} gendoc.py > $@.tmp mv $@.tmp $@