doc/Makefile
changeset 6724 2e58f1a36046
parent 6486 960bc707ea10
child 6943 2ca70663ded3
equal deleted inserted replaced
6682:4fa7701918ed 6724:2e58f1a36046
     2 MAN=$(SOURCES:%.txt=%)
     2 MAN=$(SOURCES:%.txt=%)
     3 HTML=$(SOURCES:%.txt=%.html)
     3 HTML=$(SOURCES:%.txt=%.html)
     4 PREFIX=/usr/local
     4 PREFIX=/usr/local
     5 MANDIR=$(PREFIX)/share/man
     5 MANDIR=$(PREFIX)/share/man
     6 INSTALL=install -c
     6 INSTALL=install -c
       
     7 PYTHON=python
     7 
     8 
     8 all: man html
     9 all: man html
     9 
    10 
    10 man: $(MAN)
    11 man: $(MAN)
    11 
    12 
    13 
    14 
    14 hg.1.txt: hg.1.gendoc.txt
    15 hg.1.txt: hg.1.gendoc.txt
    15 	touch hg.1.txt
    16 	touch hg.1.txt
    16 
    17 
    17 hg.1.gendoc.txt: ../mercurial/commands.py ../mercurial/help.py
    18 hg.1.gendoc.txt: ../mercurial/commands.py ../mercurial/help.py
    18 	python gendoc.py > $@
    19 	${PYTHON} gendoc.py > $@
    19 
    20 
    20 %: %.xml
    21 %: %.xml
    21 	xmlto man $*.xml ; \
    22 	xmlto man $*.xml ; \
    22 	sed -e 's/^\.hg/\\\&.hg/' $* > $*~ ; \
    23 	sed -e 's/^\.hg/\\\&.hg/' $* > $*~ ; \
    23 	mv $*~ $*
    24 	mv $*~ $*