equal
deleted
inserted
replaced
4 GENDOC=gendoc.py ../mercurial/commands.py ../mercurial/help.py ../mercurial/help/*.txt |
4 GENDOC=gendoc.py ../mercurial/commands.py ../mercurial/help.py ../mercurial/help/*.txt |
5 PREFIX=/usr/local |
5 PREFIX=/usr/local |
6 MANDIR=$(PREFIX)/share/man |
6 MANDIR=$(PREFIX)/share/man |
7 INSTALL=install -c -m 644 |
7 INSTALL=install -c -m 644 |
8 PYTHON=python |
8 PYTHON=python |
9 RST2HTML=$(shell which rst2html 2> /dev/null || echo rst2html.py) |
|
10 |
9 |
11 export LANGUAGE=C |
10 export LANGUAGE=C |
12 export LC_ALL=C |
11 export LC_ALL=C |
13 |
12 |
14 all: man html |
13 all: man html |
23 hg.1.gendoc.txt: $(GENDOC) |
22 hg.1.gendoc.txt: $(GENDOC) |
24 ${PYTHON} gendoc.py > $@.tmp |
23 ${PYTHON} gendoc.py > $@.tmp |
25 mv $@.tmp $@ |
24 mv $@.tmp $@ |
26 |
25 |
27 %: %.txt common.txt |
26 %: %.txt common.txt |
28 $(PYTHON) rst2man.py --halt warning \ |
27 $(PYTHON) runrst manpage --halt warning \ |
29 --strip-elements-with-class htmlonly $*.txt $* |
28 --strip-elements-with-class htmlonly $*.txt $* |
30 |
29 |
31 %.html: %.txt common.txt |
30 %.html: %.txt common.txt |
32 $(RST2HTML) --halt warning \ |
31 $(PYTHON) runrst html --halt warning \ |
33 --link-stylesheet --stylesheet-path style.css $*.txt $*.html |
32 --link-stylesheet --stylesheet-path style.css $*.txt $*.html |
34 |
33 |
35 MANIFEST: man html |
34 MANIFEST: man html |
36 # tracked files are already in the main MANIFEST |
35 # tracked files are already in the main MANIFEST |
37 $(RM) $@ |
36 $(RM) $@ |