view doc/Makefile @ 1926:ba198d17eea9

changes by John Levon to standardize some erroroutput
author Peter van Dijk <peter@dataloss.nl>
date Wed, 22 Feb 2006 15:57:43 +0100
parents c6c76ead1cc1
children 7956893e8458
line wrap: on
line source

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

all: man html

man: $(MAN)

html: $(HTML)

%: %.xml
	xmlto man $*.xml

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

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

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