Mercurial > hg
comparison doc/Makefile @ 9162:2399362b3bb0
doc: link man pages to one another
author | Martin Geisler <mg@lazybytes.net> |
---|---|
date | Thu, 16 Jul 2009 23:25:26 +0200 |
parents | e8b653a4b8da |
children | a6747ba27d22 |
comparison
equal
deleted
inserted
replaced
9161:e8b653a4b8da | 9162:2399362b3bb0 |
---|---|
18 touch hg.1.txt | 18 touch hg.1.txt |
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 common.txt |
24 # add newline after all literal blocks and fix backslash escape | 24 # add newline after all literal blocks and fix backslash escape |
25 $(RST2MAN) $*.txt \ | 25 $(RST2MAN) $*.txt \ |
26 | sed -e 's/^\.fi$$/.fi\n/' \ | 26 | sed -e 's/^\.fi$$/.fi\n/' \ |
27 | sed -e 's/\\fB\\\\fP/\\fB\\e\\fP/' \ | 27 | sed -e 's/\\fB\\\\fP/\\fB\\e\\fP/' \ |
28 > $* | 28 > $* |
29 | 29 |
30 %.html: %.txt | 30 %.html: %.txt common.txt |
31 $(RST2HTML) $*.txt > $*.html | 31 $(RST2HTML) $*.txt > $*.html |
32 | 32 |
33 MANIFEST: man html | 33 MANIFEST: man html |
34 # tracked files are already in the main MANIFEST | 34 # tracked files are already in the main MANIFEST |
35 $(RM) $@ | 35 $(RM) $@ |