Mercurial > hg
comparison doc/Makefile @ 9703:8374f26727de
doc/Makefile: add help/*.txt as a dependency
author | Martin Geisler <mg@lazybytes.net> |
---|---|
date | Mon, 02 Nov 2009 21:38:42 +0100 |
parents | d1aa5393bef4 |
children | fa99480d5135 |
comparison
equal
deleted
inserted
replaced
9702:a9d15bf7efe2 | 9703:8374f26727de |
---|---|
1 SOURCES=$(wildcard *.[0-9].txt) | 1 SOURCES=$(wildcard *.[0-9].txt) |
2 MAN=$(SOURCES:%.txt=%) | 2 MAN=$(SOURCES:%.txt=%) |
3 HTML=$(SOURCES:%.txt=%.html) | 3 HTML=$(SOURCES:%.txt=%.html) |
4 GENDOC=gendoc.py ../mercurial/commands.py ../mercurial/help.py ../help/*.txt | |
4 PREFIX=/usr/local | 5 PREFIX=/usr/local |
5 MANDIR=$(PREFIX)/share/man | 6 MANDIR=$(PREFIX)/share/man |
6 INSTALL=install -c -m 644 | 7 INSTALL=install -c -m 644 |
7 PYTHON=python | 8 PYTHON=python |
8 RST2HTML=$(shell which rst2html 2> /dev/null || which rst2html.py) | 9 RST2HTML=$(shell which rst2html 2> /dev/null || which rst2html.py) |
14 html: $(HTML) | 15 html: $(HTML) |
15 | 16 |
16 hg.1.txt: hg.1.gendoc.txt | 17 hg.1.txt: hg.1.gendoc.txt |
17 touch hg.1.txt | 18 touch hg.1.txt |
18 | 19 |
19 hg.1.gendoc.txt: gendoc.py ../mercurial/commands.py ../mercurial/help.py | 20 hg.1.gendoc.txt: $(GENDOC) |
20 ${PYTHON} gendoc.py > $@.tmp | 21 ${PYTHON} gendoc.py > $@.tmp |
21 mv $@.tmp $@ | 22 mv $@.tmp $@ |
22 | 23 |
23 %: %.txt common.txt | 24 %: %.txt common.txt |
24 $(PYTHON) rst2man.py --halt warning \ | 25 $(PYTHON) rst2man.py --halt warning \ |