-
Notifications
You must be signed in to change notification settings - Fork 0
/
makefile
52 lines (39 loc) · 1.22 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
#!/usr/bin/make -f
ifneq (,)
This makefile requires GNU Make.
endif
# force use of Bash
SHELL := /bin/bash
INTERACTIVE=true
LANGUAGE_DATA_DIR=./data
FONT_CREATOR_PATH=../
.PHONY: default
default: build-all generate-all-fonts
build-all: build-latin build-api build-arabic
generate-all-fonts: generate-latin-font generate-api-font generate-arabic-font
build-latin:
cd ${LANGUAGE_DATA_DIR} && yarn build -- --latin
build-api:
cd ${LANGUAGE_DATA_DIR} && yarn build -- --api
build-arabic:
cd ${LANGUAGE_DATA_DIR} && yarn build -- --arabic
generate-latin-font: reset
cd ${FONT_CREATOR_PATH} \
&& pwd && yarn build -- \
--config ./config/top.tifinagh.js \
--data ${LANGUAGE_DATA_DIR}/src/data-latin.json \
--font-name RFC-Tifinagh-latin-regular
generate-api-font: reset
cd ${FONT_CREATOR_PATH} \
&& pwd && yarn build -- \
--config ./config/top.tifinagh.js \
--data ${LANGUAGE_DATA_DIR}/src/data-API.json \
--font-name RFC-Tifinagh-API-regular
generate-arabic-font: reset
cd ${FONT_CREATOR_PATH} \
&& pwd && yarn build -- \
--config ./config/top.tifinagh.js \
--data ${LANGUAGE_DATA_DIR}/src/data-arabic.json \
--font-name RFC-Tifinagh-arabic-regular
reset:
rm ${FONT_CREATOR_PATH}/build/svg --recursive --force