Makefile
21 lines
| 296 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 | |||
all: man | ||||
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 | ||
asciidoc -b html $*.txt | ||||
mpm@selenic.com
|
r465 | |||
clean: | ||||
Bryan O'Sullivan
|
r671 | $(RM) $(MAN) $(MAN:%=%.xml) $(MAN:%=%.html) | ||