summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/babel-contrib/japanese/Makefile
blob: a9d921270979df9c62eaa5c406b40d109145d5bc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# Makefile for babel-japanese
# Note that all files are UTF-8 (without BOM) encoded!

STRIPTARGET = japanese.ldf japanese-sample.tex
PDFTARGET = japanese.pdf japanese-sample.pdf
DVITARGET = japanese.dvi japanese-sample.dvi
KANJI = --kanji=utf8
FONTMAP = -f ptex-ipaex.map -f ipaex.map

default: $(STRIPTARGET) $(DVITARGET)
strip: $(STRIPTARGET)
all: $(STRIPTARGET) $(PDFTARGET)

japanese.ldf: japanese.dtx
	platex $(KANJI) japanese.ins

japanese.dvi: japanese.dtx
	platex $(KANJI) japanese.dtx
	platex $(KANJI) japanese.dtx

.SUFFIXES: .tex .dvi .pdf
.tex.dvi:
	platex $(KANJI) $<
	platex $(KANJI) $<
.dvi.pdf:
	dvipdfmx $(FONTMAP) $<

.PHONY: clean
clean:
	rm -f \
	japanese.ldf japanese-sample.tex \
	japanese.pdf japanese-sample.pdf