doc/Makefile
author Thomas Arendsen Hein <thomas@intevation.de>
Wed, 10 Aug 2005 08:41:23 +0100
changeset 865 2d2fee33ec68
parent 671 efa4a7e2f322
child 1006 b0e581438835
permissions -rw-r--r--
Cleanup after previous changes: - there are only two states for the exec bit, so no need to override it. - file_ variable is only once now, so it self.file(f) can be used directly.

SOURCES=$(wildcard *.[0-9].txt)
MAN=$(SOURCES:%.txt=%)
HTML=$(SOURCES:%.txt=%.html)

all: man

man: $(MAN)

html: $(HTML)

%: %.xml
	xmlto man $*.xml

%.xml: %.txt
	asciidoc -d manpage -b docbook $*.txt

%.html: %.txt
	asciidoc -b html $*.txt

clean:
	$(RM) $(MAN) $(MAN:%=%.xml) $(MAN:%=%.html)