Makefile
21 lines
| 301 B
| text/x-makefile
|
MakefileLexer
/ doc / Makefile
|
r671 | SOURCES=$(wildcard *.[0-9].txt) | ||
MAN=$(SOURCES:%.txt=%) | ||||
HTML=$(SOURCES:%.txt=%.html) | ||||
|
r465 | |||
|
r1006 | all: man html | ||
|
r465 | |||
man: $(MAN) | ||||
html: $(HTML) | ||||
|
r671 | %: %.xml | ||
xmlto man $*.xml | ||||
|
r465 | |||
|
r671 | %.xml: %.txt | ||
asciidoc -d manpage -b docbook $*.txt | ||||
|
r465 | |||
|
r671 | %.html: %.txt | ||
asciidoc -b html $*.txt | ||||
|
r465 | |||
clean: | ||||
|
r671 | $(RM) $(MAN) $(MAN:%=%.xml) $(MAN:%=%.html) | ||