doc/ja/Makefile
author Bryan O'Sullivan <bos@serpentine.com>
Mon, 16 Jul 2007 18:01:20 -0700
changeset 4891 2d545b98a7bc
parent 1500 cadde8ebf167
permissions -rw-r--r--
issue 622: pull/unbundle -u updates to default branch if repo was empty

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)