doc/Makefile
changeset 8311 e0eb03bfa5af
parent 7686 fa584d23e3cc
child 8822 1027da7d2fb9
equal deleted inserted replaced
8310:8417d82d3969 8311:e0eb03bfa5af
    18 
    18 
    19 hg.1.gendoc.txt: ../mercurial/commands.py ../mercurial/help.py
    19 hg.1.gendoc.txt: ../mercurial/commands.py ../mercurial/help.py
    20 	${PYTHON} gendoc.py > $@
    20 	${PYTHON} gendoc.py > $@
    21 
    21 
    22 %: %.xml
    22 %: %.xml
    23 	xmlto man $*.xml ; \
    23 	xmlto man $*.xml && \
    24 	sed -e 's/^\.hg/\\\&.hg/' $* > $*~ ; \
    24 	sed -e 's/^\.hg/\\\&.hg/' $* > $*~ && \
    25 	mv $*~ $*
    25 	mv $*~ $*
    26 
    26 
    27 %.xml: %.txt
    27 %.xml: %.txt
    28 	$(ASCIIDOC) -d manpage -b docbook $*.txt
    28 	$(ASCIIDOC) -d manpage -b docbook $*.txt
    29 
    29