doc/Makefile
author Thomas Arendsen Hein <thomas@intevation.de>
Thu, 04 Aug 2005 17:23:31 +0100
changeset 830 ca080d28d0af
parent 671 efa4a7e2f322
child 1006 b0e581438835
permissions -rw-r--r--
If rejects are empty after using the editor, merge with diff+patch was ok.

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)