blob: a87758da60ad1a33e2c82ededf1a87d98cfa76dc (
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
|
STRIPTARGET = morisawa.sty
DOCTARGET = morisawa
PDFTARGET = $(addsuffix .pdf,$(DOCTARGET))
DVITARGET = $(addsuffix .dvi,$(DOCTARGET))
KANJI = -kanji=utf8
FONTMAP = -f ipaex.map -f ptex-ipaex.map
TEXMF = $(shell kpsewhich -var-value=TEXMFHOME)
default: $(STRIPTARGET) $(DVITARGET)
strip: $(STRIPTARGET)
all: $(STRIPTARGET) $(PDFTARGET)
# `make fonts' will fail due to lack of kpathsea of sources,
# but shown here for information purpose.
# if you want to make these, put sources in the current dir.
fonts:
for fnt in Ryumin-Light FutoMinA101-Bold ; do \
cp min10.tfm $$fnt-H.tfm ; \
cp tmin10.tfm $$fnt-V.tfm ; \
cp jis.tfm $$fnt-J.tfm ; \
done
for fnt in GothicBBB-Medium FutoGoB101-Bold Jun101-Light ; do \
cp goth10.tfm $$fnt-H.tfm ; \
cp tgoth10.tfm $$fnt-V.tfm ; \
cp jisg.tfm $$fnt-J.tfm ; \
done
for VAR in J H ; do \
makejvf Ryumin-Light-$$VAR ryumin-l ; \
makejvf FutoMinA101-Bold-$$VAR futomin-b ; \
makejvf GothicBBB-Medium-$$VAR gtbbb-m ; \
makejvf FutoGoB101-Bold-$$VAR futogo-b ; \
makejvf Jun101-Light-$$VAR jun101-l ; \
done
for VAR in V ; do \
makejvf Ryumin-Light-$$VAR ryumin-l-v ; \
makejvf FutoMinA101-Bold-$$VAR futomin-b-v ; \
makejvf GothicBBB-Medium-$$VAR gtbbb-m-v ; \
makejvf FutoGoB101-Bold-$$VAR futogo-b-v ; \
makejvf Jun101-Light-$$VAR jun101-l-v ; \
done
rm -f min10.tfm tmin10.tfm jis.tfm
rm -f goth10.tfm tgoth10.tfm jisg.tfm
mv *.tfm tfm/
mv *.vf vf/
# for generating files, we use pdflatex incidentally.
# current packages contain ASCII characters only, safe enough
morisawa.sty: morisawa.dtx
rm -f morisawa
pdflatex morisawa.ins
rm morisawa.log
.SUFFIXES: .dtx .dvi .pdf
.dtx.dvi:
platex $(KANJI) $<
platex $(KANJI) $<
rm -f *.aux *.log *.toc
.dvi.pdf:
dvipdfmx $(FONTMAP) $<
.PHONY: install clean cleanstrip cleanall cleandoc
install:
mkdir -p ${TEXMF}/doc/platex/morisawa
cp ./LICENSE ${TEXMF}/doc/platex/morisawa/
cp ./README.md ${TEXMF}/doc/platex/morisawa/
cp ./*.pdf ${TEXMF}/doc/platex/morisawa/
mkdir -p ${TEXMF}/fonts/map/dvipdfmx/morisawa/
cp ./map/* ${TEXMF}/fonts/map/dvipdfmx/morisawa/
mkdir -p ${TEXMF}/fonts/tfm/public/morisawa
cp ./tfm/futo* ${TEXMF}/fonts/tfm/public/morisawa/
cp ./tfm/gtb* ${TEXMF}/fonts/tfm/public/morisawa/
cp ./tfm/jun* ${TEXMF}/fonts/tfm/public/morisawa/
cp ./tfm/ryumin* ${TEXMF}/fonts/tfm/public/morisawa/
mkdir -p ${TEXMF}/fonts/tfm/public/morisawa
cp ./tfm/Futo* ${TEXMF}/fonts/tfm/public/morisawa/
cp ./tfm/Gothic* ${TEXMF}/fonts/tfm/public/morisawa/
cp ./tfm/Jun* ${TEXMF}/fonts/tfm/public/morisawa/
cp ./tfm/Ryumin* ${TEXMF}/fonts/tfm/public/morisawa/
mkdir -p ${TEXMF}/fonts/vf/public/morisawa
cp ./vf/Futo* ${TEXMF}/fonts/vf/public/morisawa/
cp ./vf/Gothic* ${TEXMF}/fonts/vf/public/morisawa/
cp ./vf/Jun* ${TEXMF}/fonts/vf/public/morisawa/
cp ./vf/Ryumin* ${TEXMF}/fonts/vf/public/morisawa/
mkdir -p ${TEXMF}/source/platex/morisawa
cp ./Makefile ${TEXMF}/source/platex/morisawa/
cp ./*.dtx ${TEXMF}/source/platex/morisawa/
cp ./*.ins ${TEXMF}/source/platex/morisawa/
mkdir -p ${TEXMF}/tex/platex/morisawa
cp ./*.sty ${TEXMF}/tex/platex/morisawa/
clean:
rm -f $(STRIPTARGET) $(DVITARGET)
cleanstrip:
rm -f $(STRIPTARGET)
cleanall:
rm -f $(STRIPTARGET) $(DVITARGET) $(PDFTARGET)
cleandoc:
rm -f $(DVITARGET) $(PDFTARGET)
|