##// 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 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
4
5 all: man html
5 all: man html
6
6
7 man: $(MAN)
7 man: $(MAN)
8
8
9 html: $(HTML)
9 html: $(HTML)
10
10
11 hg.1.txt: hg.1.gendoc.txt
11 hg.1.txt: hg.1.gendoc.txt
12 touch hg.1.txt
12 touch hg.1.txt
13
13
14 hg.1.gendoc.txt:
14 hg.1.gendoc.txt: ../mercurial/commands.py
15 python gendoc.py > $@
15 python gendoc.py > $@
16
16
17 %: %.xml
17 %: %.xml
18 xmlto man $*.xml
18 xmlto man $*.xml
19
19
20 %.xml: %.txt
20 %.xml: %.txt
21 asciidoc -d manpage -b docbook $*.txt
21 asciidoc -d manpage -b docbook $*.txt
22
22
23 %.html: %.txt
23 %.html: %.txt
24 asciidoc -b html4 $*.txt || asciidoc -b html $*.txt
24 asciidoc -b html4 $*.txt || asciidoc -b html $*.txt
25
25
26 clean:
26 clean:
27 $(RM) $(MAN) $(MAN:%=%.xml) $(MAN:%=%.html)
27 $(RM) $(MAN) $(MAN:%=%.xml) $(MAN:%=%.html)
General Comments 0
You need to be logged in to leave comments. Login now