mirror of
https://github.com/facebook/sapling.git
synced 2024-10-11 01:07:15 +03:00
22 lines
350 B
Makefile
22 lines
350 B
Makefile
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)
|