doc/ja/Makefile
author Alexis S. L. Carvalho <alexis@cecm.usp.br>
Mon, 27 Nov 2006 22:03:36 -0200
changeset 3717 9e248cfd8b94
parent 1500 cadde8ebf167
permissions -rw-r--r--
handle files with more than one git binary patch

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)