view doc/Makefile @ 1560:2cf2fb2e2d15 default tip

merged crew or orig repo
author twaldmann@thinkmo.de
date Sat, 26 Nov 2005 12:54:48 +0100
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)