view doc/Makefile @ 1510:755e7ac351ef

use self.{w,}join when possible
author Benoit Boissinot <benoit.boissinot@ens-lyon.org>
date Tue, 08 Nov 2005 10:34:50 -0800
parents 9346a7fb3fe2
children
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

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