blob: 4c2e8d2b8976246411fa042f72af2d49f7b853bb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
#!/usr/bin/make -f
fontpath=/usr/share/fonts/truetype/malayalam
font=Rachana
default: compile
all: compile webfonts
compile:
@echo "Generating ${font}.ttf"
@fontforge -lang=ff -c "Open('${font}.sfd'); Generate('${font}.ttf')";
webfonts:compile
@echo "Generating webfonts";
@sfntly -w ${font}.ttf ${font}.woff;
@sfntly -e -x ${font}.ttf ${font}.eot;
@[ -x `which woff2_compress` ] && woff2_compress ${font}.ttf;
install: compile
@install -D -m 0644 ${font}.ttf ${DESTDIR}/${fontpath}/${font}.ttf;
|