forked from MihailJP/Russkopis
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
42 lines (32 loc) · 1010 Bytes
/
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
# Russkopis Makefile
font = russkopis
targets = $(font) readme-rus readme-jpn
fonts = Russkopis-Normalny Russkopis-Zhirny
objs = $(addsuffix .otf,$(fonts))
rusdocs = README.ru.koi8 README.ru.cp1251 README.ru.iso8859-5
jpndocs = README.ja.sjis README.ja.euc
docs = README README.ru.utf8 $(rusdocs) README.ja.utf8 $(jpndocs) LICENSE AUTHORS
.PHONY: all
all: $(targets)
$(font): $(objs)
%.otf: %.sfd
fontforge -lang=ff -c "Open(\"$<\");Generate(\"$@\");Close()"
dist: all
mkdir $(font)
cp $(objs) $(docs) $(font)
zip -9r $(font).zip $(font)
readme-rus: $(rusdocs)
README.ru.cp1251: README.ru.utf8
iconv -f utf-8 -t cp1251 $< > $@
README.ru.iso8859-5: README.ru.utf8
iconv -f utf-8 -t iso8859-5 $< > $@
README.ru.koi8: README.ru.utf8
iconv -f utf-8 -t koi8-r $< > $@
readme-jpn: $(jpndocs)
README.ja.sjis: README.ja.utf8
iconv -f utf-8 -t sjis $< > $@
README.ja.euc: README.ja.utf8
iconv -f utf-8 -t euc-jp $< > $@
.PHONY: clean
clean:
-rm -rf $(objs) $(font) $(font).zip $(rusdocs) $(jpndocs)