doc/ja/Makefile
author Benoit Boissinot <benoit.boissinot@ens-lyon.org>
Fri, 17 Aug 2007 00:42:22 +0200
changeset 5179 156f4c8a12aa
parent 1500 cadde8ebf167
permissions -rw-r--r--
clone: do not delete the target if only the update fails

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

all: man html

man: $(MAN)

html: $(HTML)

%: %.xml
	xmlto -x docbook.ja.xsl man $*.xml

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

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

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