equal
deleted
inserted
replaced
3 HTML=$(SOURCES:%.txt=%.html) |
3 HTML=$(SOURCES:%.txt=%.html) |
4 PREFIX=/usr/local |
4 PREFIX=/usr/local |
5 MANDIR=$(PREFIX)/share/man |
5 MANDIR=$(PREFIX)/share/man |
6 INSTALL=install -c |
6 INSTALL=install -c |
7 PYTHON=python |
7 PYTHON=python |
|
8 ASCIIDOC=asciidoc |
8 |
9 |
9 all: man html |
10 all: man html |
10 |
11 |
11 man: $(MAN) |
12 man: $(MAN) |
12 |
13 |
22 xmlto man $*.xml ; \ |
23 xmlto man $*.xml ; \ |
23 sed -e 's/^\.hg/\\\&.hg/' $* > $*~ ; \ |
24 sed -e 's/^\.hg/\\\&.hg/' $* > $*~ ; \ |
24 mv $*~ $* |
25 mv $*~ $* |
25 |
26 |
26 %.xml: %.txt |
27 %.xml: %.txt |
27 asciidoc -d manpage -b docbook $*.txt |
28 $(ASCIIDOC) -d manpage -b docbook $*.txt |
28 |
29 |
29 %.html: %.txt |
30 %.html: %.txt |
30 asciidoc -b html4 $*.txt || asciidoc -b html $*.txt |
31 $(ASCIIDOC) -b html4 $*.txt || $(ASCIIDOC) -b html $*.txt |
31 |
32 |
32 MANIFEST: man html |
33 MANIFEST: man html |
33 # tracked files are already in the main MANIFEST |
34 # tracked files are already in the main MANIFEST |
34 $(RM) $@ |
35 $(RM) $@ |
35 for i in $(MAN) $(HTML) hg.1.gendoc.txt; do \ |
36 for i in $(MAN) $(HTML) hg.1.gendoc.txt; do \ |