doc/ja/Makefile
author Matt Mackall <mpm@selenic.com>
Fri, 07 Dec 2007 02:01:10 -0600
changeset 5607 e9bae5c80ab4
parent 1500 cadde8ebf167
permissions -rw-r--r--
copy: minor cleanups - add after and dryrun variables - add some comments

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)