-
Notifications
You must be signed in to change notification settings - Fork 3
/
Makefile
31 lines (23 loc) · 853 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
.PHONY: clean all watch
all: noqte.ttf noqte.woff noqte.woff2 glyphs.png
noqte.ttf: noqte.sfd
fontforge -quiet -lang ff -c "Open(\"noqte.sfd\",1);Generate(\"noqte.ttf\")"
noqte.woff: noqte.sfd
fontforge -quiet -lang ff -c "Open(\"noqte.sfd\",1);Generate(\"noqte.woff\")"
noqte.woff2: noqte.sfd
fontforge -quiet -lang ff -c "Open(\"noqte.sfd\",1);Generate(\"noqte.woff2\")"
noqte.tar.gz: noqte.ttf noqte.woff noqte.woff2 noqte.png
tar czf noqte.tar.gz noqte.ttf noqte.woff noqte.woff2 glyphs.png
glyphs.png: ttftest
./ttftest -s
ttftest: *.c
gcc *.c \
-I/usr/include/SDL2 -lSDL2 -lSDL2_ttf -lSDL2_image \
-I/usr/include/harfbuzz -I/usr/include/freetype2 \
-I/usr/include/glib-2.0 \
-I/usr/lib/glib-2.0/include \
-o ttftest
watch:
./build.sh noqte.sfd ttftest.c
clean:
rm -f noqte.ttf noqte.woff noqte.woff2 ttftest noqte.tar.gz