view doc/Makefile @ 1281:84df9951532a

Add --pull option to clone.
author Bryan O'Sullivan <bos@serpentine.com>
date Tue, 20 Sep 2005 11:20:48 -0700
parents b0e581438835
children 9346a7fb3fe2
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 html $*.txt

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