Makefile
21 lines
| 329 B
| text/x-makefile
|
MakefileLexer
/ doc / Makefile
Bryan O'Sullivan
|
r671 | SOURCES=$(wildcard *.[0-9].txt) | ||
MAN=$(SOURCES:%.txt=%) | ||||
HTML=$(SOURCES:%.txt=%.html) | ||||
mpm@selenic.com
|
r465 | |||
Thomas Arendsen Hein
|
r1006 | all: man html | ||
mpm@selenic.com
|
r465 | |||
man: $(MAN) | ||||
html: $(HTML) | ||||
Bryan O'Sullivan
|
r671 | %: %.xml | ||
xmlto man $*.xml | ||||
mpm@selenic.com
|
r465 | |||
Bryan O'Sullivan
|
r671 | %.xml: %.txt | ||
asciidoc -d manpage -b docbook $*.txt | ||||
mpm@selenic.com
|
r465 | |||
Bryan O'Sullivan
|
r671 | %.html: %.txt | ||
Thomas Arendsen Hein
|
r1689 | asciidoc -b html4 $*.txt || asciidoc -b html $*.txt | ||
mpm@selenic.com
|
r465 | |||
clean: | ||||
Bryan O'Sullivan
|
r671 | $(RM) $(MAN) $(MAN:%=%.xml) $(MAN:%=%.html) | ||