-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
29 lines (22 loc) · 711 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
PATCHER_URL = https://github.com/ryanoasis/nerd-fonts/releases/latest/download/FontPatcher.zip
PATCHER_ZIP = FontPatcher.zip
PATCHER_DIR = FontPatcher
PATCHER = ${PATCHER_DIR}/font-patcher
PATCH_OPTS ?=
PATCH = fontforge -script ${PATCHER} -c ${PATCH_OPTS}
TTF = ComicShannsNerdFont-Regular.ttf
OTF = ComicShannsNerdFont-Regular.otf
.PHONY: all ttf otf clean
all: ttf otf
ttf: ${TTF}
otf: ${OTF}
${TTF}: v2/comic\ shanns\ 2.ttf ${PATCHER_DIR}
${PATCH} v2/comic\ shanns\ 2.ttf
${OTF}: v2/comic\ shanns.otf ${PATCHER_DIR}
${PATCH} v2/comic\ shanns.otf
${PATCHER_DIR}: ${PATCHER_ZIP}
unzip $^ -d $@
${PATCHER_ZIP}:
curl -L -o $@ ${PATCHER_URL}
clean:
rm -rf ${TTF} ${OTF} ${PATCHER_ZIP} ${PATCHER_DIR}