forked from viznut/unscii
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
155 lines (104 loc) · 4.34 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
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
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
SRC=src/unscii.txt src/punctuation.txt src/numbers.txt src/math.txt \
src/textsymbols.txt src/latin.txt src/greek.txt src/cyrillic.txt \
src/hebrew.txt src/arabic.txt src/katakana.txt src/runes.txt \
src/diacritics.txt src/symbols.txt src/arrows.txt src/shapes.txt \
src/lines.txt src/patterns.txt src/divisions.txt src/grids.txt \
src/pictures.txt src/ctrl.txt
CC=gcc -Os
all: unscii-16.pcf unscii-8.pcf unscii-16-full.pcf \
unscii-8-alt.pcf unscii-8-thin.pcf unscii-8-tall.pcf unscii-8-mcr.pcf unscii-8-fantasy.pcf \
unscii-16.ttf unscii-8.ttf unscii-16-full.ttf \
unscii-8-alt.ttf unscii-8-thin.ttf unscii-8-tall.ttf unscii-8-mcr.ttf unscii-8-fantasy.ttf \
bm2uns
VERSION=2.1
HEX2BDF=./hex2bdf.pl --version=$(VERSION)
### HEX ###
unscii-16.hex: $(SRC)
./assemble.pl
unscii-8.hex: $(SRC)
./assemble.pl
unscii-8-alt.hex: $(SRC) src/font-alt.txt
./assemble.pl alt
unscii-8-thin.hex: $(SRC) src/font-thin.txt
./assemble.pl thin
unscii-8-mcr.hex: $(SRC) src/font-mcr.txt
./assemble.pl mcr
unscii-8-fantasy.hex: $(SRC) src/font-fantasy.txt
./assemble.pl fantasy
unscii-8-tall.hex: unscii-8.hex
./doubleheight.pl < unscii-8.hex > unscii-8-tall.hex
unscii-16-full.hex: unscii-16.hex unifont.hex fsex-adapted.hex
./merge-otherfonts.pl > unscii-16-full.hex
### PCF ###
unscii-16.pcf: unscii-16.hex
$(HEX2BDF) --variant='16' --rows=16 < unscii-16.hex | bdftopcf > unscii-16.pcf
unscii-8.pcf: unscii-8.hex
$(HEX2BDF) --variant='8' --rows=8 < unscii-8.hex | bdftopcf > unscii-8.pcf
unscii-8-alt.pcf: unscii-8-alt.hex
$(HEX2BDF) --variant='alt' --rows=8 < unscii-8-alt.hex | bdftopcf > unscii-8-alt.pcf
unscii-8-thin.pcf: unscii-8-thin.hex
$(HEX2BDF) --variant='thin' --rows=8 < unscii-8-thin.hex | bdftopcf > unscii-8-thin.pcf
unscii-8-tall.pcf: unscii-8-tall.hex
$(HEX2BDF) --variant='tall' --rows=16 < unscii-8-tall.hex | bdftopcf > unscii-8-tall.pcf
unscii-8-mcr.pcf: unscii-8-mcr.hex
$(HEX2BDF) --variant='mcr' --rows=8 < unscii-8-mcr.hex | bdftopcf > unscii-8-mcr.pcf
unscii-8-fantasy.pcf: unscii-8-fantasy.hex
$(HEX2BDF) --variant='fantasy' --rows=8 < unscii-8-fantasy.hex | bdftopcf > unscii-8-fantasy.pcf
unscii-16-full.pcf: unscii-16-full.hex
$(HEX2BDF) --variant='full' --rows=16 < unscii-16-full.hex | bdftopcf > unscii-16-full.pcf
### SVG ###
unscii-16.svg: unscii-16.hex vectorize
./vectorize 16 16 < unscii-16.hex > unscii-16.svg
unscii-8.svg: unscii-8.hex vectorize
./vectorize 8 8 < unscii-8.hex > unscii-8.svg
unscii-8-alt.svg: unscii-8-alt.hex vectorize
./vectorize 8 alt alt < unscii-8-alt.hex > unscii-8-alt.svg
unscii-8-thin.svg: unscii-8-thin.hex vectorize
./vectorize 8 thin < unscii-8-thin.hex > unscii-8-thin.svg
unscii-8-tall.svg: unscii-8-tall.hex vectorize
./vectorize 8 tall < unscii-8-tall.hex > unscii-8-tall.svg
unscii-8-mcr.svg: unscii-8-mcr.hex vectorize
./vectorize 8 mcr < unscii-8-mcr.hex > unscii-8-mcr.svg
unscii-8-fantasy.svg: unscii-8-fantasy.hex vectorize
./vectorize 8 fantasy < unscii-8-fantasy.hex > unscii-8-fantasy.svg
unscii-16-full.svg: unscii-16-full.hex vectorize
./vectorize 16 full < unscii-16-full.hex > unscii-16-full.svg
### TTF/OTF/WOFF ###
unscii-16.ttf: unscii-16.svg
./makevecfonts.ff unscii-16
unscii-8.ttf: unscii-8.svg
./makevecfonts.ff unscii-8
unscii-8-alt.ttf: unscii-8-alt.svg
./makevecfonts.ff unscii-8-alt
unscii-8-thin.ttf: unscii-8-thin.svg
./makevecfonts.ff unscii-8-thin
unscii-8-tall.ttf: unscii-8-tall.svg
./makevecfonts.ff unscii-8-tall
unscii-8-mcr.ttf: unscii-8-mcr.svg
./makevecfonts.ff unscii-8-mcr
unscii-8-fantasy.ttf: unscii-8-fantasy.svg
./makevecfonts.ff unscii-8-fantasy
unscii-16-full.ttf: unscii-16-full.svg
./makevecfonts.ff unscii-16-full
### tools ###
uns2uni.tr: $(SRC)
./assemble.pl
vectorize: vectorize.c
$(CC) vectorize.c -o vectorize
bm2uns: bm2uns.c bm2uns.i
$(CC) -O3 bm2uns.c -o bm2uns `sdl-config --libs --cflags` -lSDL_image -lm
bm2uns.i: unscii-8.hex bm2uns-prebuild.pl
./bm2uns-prebuild.pl | sort > bm2uns.i
uns2uni: uns2uni.tr makeconverters.pl
./makeconverters.pl
uni2uns: uns2uni.tr makeconverters.pl
./makeconverters.pl
### release ###
clean:
rm -f *~ *.pcf *.svg unscii*.hex vectorize bm2uns bm2uns.i *.ttf *.otf *.woff \
uns2uni.tr uns2uni uni2uns DEADJOE
srcpackage: clean
cd .. && tar czf unscii-$(VERSION)-src.tar.gz unscii-$(VERSION)-src
web:
cp *.pcf *.ttf *.otf *.woff *.hex ../web/
cp ../unscii-$(VERSION)-src.tar.gz ../web/