--- a/doc/Makefile Sun Sep 13 17:53:09 2009 +0200
+++ b/doc/Makefile Sun Sep 13 17:05:38 2009 +0200
@@ -17,13 +17,14 @@
touch hg.1.txt
hg.1.gendoc.txt: gendoc.py ../mercurial/commands.py ../mercurial/help.py
- ${PYTHON} gendoc.py > $@
+ ${PYTHON} gendoc.py > $@.tmp
+ mv $@.tmp $@
%: %.txt common.txt
- $(PYTHON) rst2man.py --strip-elements-with-class htmlonly $*.txt > $*
+ $(PYTHON) rst2man.py --strip-elements-with-class htmlonly $*.txt $*
%.html: %.txt common.txt
- $(RST2HTML) $*.txt > $*.html
+ $(RST2HTML) $*.txt $*.html
MANIFEST: man html
# tracked files are already in the main MANIFEST