--- a/doc/Makefile
+++ b/doc/Makefile
@@ -26,6 +26,13 @@ hg.1.gendoc.txt: ../mercurial/commands.p
%.html: %.txt
asciidoc -b html4 $*.txt || asciidoc -b html $*.txt
+MANIFEST: man html
+ # versionned files are already in the main MANIFEST
+ $(RM) $@
+ for i in $(MAN) $(HTML); do \
+ echo "doc/$$i" >> $@ ; \
+ done
+
install: man
for i in $(MAN) ; do \
subdir=`echo $$i | sed -n 's/..*\.\([0-9]\)$$/man\1/p'` ; \
@@ -34,4 +41,4 @@ install: man
done
clean:
- $(RM) $(MAN) $(MAN:%=%.xml) $(MAN:%=%.html) *.[0-9].gendoc.txt
+ $(RM) $(MAN) $(MAN:%=%.xml) $(MAN:%=%.html) *.[0-9].gendoc.txt MANIFEST