##// END OF EJS Templates
Regenerate hg.1.gendoc.txt if commands.py changed.
Thomas Arendsen Hein -
r1819:d657bfdc default
parent child Browse files
Show More
@@ -1,27 +1,27 b''
1 1 SOURCES=$(wildcard *.[0-9].txt)
2 2 MAN=$(SOURCES:%.txt=%)
3 3 HTML=$(SOURCES:%.txt=%.html)
4 4
5 5 all: man html
6 6
7 7 man: $(MAN)
8 8
9 9 html: $(HTML)
10 10
11 11 hg.1.txt: hg.1.gendoc.txt
12 12 touch hg.1.txt
13 13
14 hg.1.gendoc.txt:
14 hg.1.gendoc.txt: ../mercurial/commands.py
15 15 python gendoc.py > $@
16 16
17 17 %: %.xml
18 18 xmlto man $*.xml
19 19
20 20 %.xml: %.txt
21 21 asciidoc -d manpage -b docbook $*.txt
22 22
23 23 %.html: %.txt
24 24 asciidoc -b html4 $*.txt || asciidoc -b html $*.txt
25 25
26 26 clean:
27 27 $(RM) $(MAN) $(MAN:%=%.xml) $(MAN:%=%.html)
General Comments 0
You need to be logged in to leave comments. Login now