doc/Makefile
changeset 9159 62b3df842de9
parent 9158 d6eecafaf12f
child 9161 e8b653a4b8da
equal deleted inserted replaced
9158:d6eecafaf12f 9159:62b3df842de9
    19 
    19 
    20 hg.1.gendoc.txt: gendoc.py ../mercurial/commands.py ../mercurial/help.py
    20 hg.1.gendoc.txt: gendoc.py ../mercurial/commands.py ../mercurial/help.py
    21 	${PYTHON} gendoc.py > $@
    21 	${PYTHON} gendoc.py > $@
    22 
    22 
    23 %: %.txt
    23 %: %.txt
    24 	$(RST2MAN) $*.txt > $*
    24 	# add newline after all literal blocks
       
    25 	$(RST2MAN) $*.txt | sed -e 's/^\.fi$$/.fi\n/' > $*
    25 
    26 
    26 %.html: %.txt
    27 %.html: %.txt
    27 	$(RST2HTML) $*.txt > $*.html
    28 	$(RST2HTML) $*.txt > $*.html
    28 
    29 
    29 MANIFEST: man html
    30 MANIFEST: man html