-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
45 lines (33 loc) · 1.52 KB
/
Makefile
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
TARGETS=SampuIshiGothic.ttf SampuIshiGothic-Bold.ttf \
SampuIshiGothic-Italic.ttf SampuIshiGothic-BoldItalic.ttf
DOCUMENTS=README.md ChangeLog LICENSE
PACKAGES=SampuIshiGothic.tar.xz
.SUFFIXES: .tar.xz
.PHONY: all
all: ${TARGETS}
.INTERMEDIATE: ${TARGETS:.ttf=.ttx} ${TARGETS:.ttf=.raw.ttf} ${TARGETS:.ttf=.raw.ttx}
SampuIshiGothic.raw.ttf: Inconsolata-LGC/Inconsolata-LGC.sfd genseki-font/ttc/GenSekiGothic2-R.ttc PatchGlyph-Regular.sfd
./mkfont.py $@ $^
SampuIshiGothic-Bold.raw.ttf: Inconsolata-LGC/Inconsolata-LGC-Bold.sfd genseki-font/ttc/GenSekiGothic2-B.ttc PatchGlyph-Bold.sfd
./mkfont.py $@ $^
SampuIshiGothic-Italic.raw.ttf: Inconsolata-LGC/Inconsolata-LGC-Italic.sfd genseki-font/ttc/GenSekiGothic2-R.ttc PatchGlyph-Regular.sfd
./mkfont.py $@ $^
SampuIshiGothic-BoldItalic.raw.ttf: Inconsolata-LGC/Inconsolata-LGC-BoldItalic.sfd genseki-font/ttc/GenSekiGothic2-B.ttc PatchGlyph-Bold.sfd
./mkfont.py $@ $^
%.raw.ttx: %.raw.ttf
ttx -t post -t "OS/2" -o $@ $<
%.ttx: %.raw.ttx
cat $< | sed -e '/isFixedPitch/s/value=".*"/value="1"/' -e '/bProportion/s/value=".*"/value="9"/' -e '/xAvgCharWidth/s/value=".*"/value="500"/' > $@
%.ttf: %.raw.ttf %.ttx
ttx -o $@ -m $^
.PHONY: dist
dist: ${PACKAGES}
ChangeLog: .git
Inconsolata-LGC/mkchglog.rb > $@ # GIT
SampuIshiGothic.tar.xz: ${TARGETS} ${DOCUMENTS}
rm -rf $*; mkdir $*; cp ${TARGETS} ${DOCUMENTS} $*; tar cfvJ $@ $*
.PHONY: clean
clean:
-rm -f ${TARGETS} ${PACKAGES}
-rm -f ${TARGETS:.ttf=.ttx} ${TARGETS:.ttf=.raw.ttf} ${TARGETS:.ttf=.raw.ttx}
-rm -rf ${PACKAGES:.tar.xz=}