-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
45 lines (35 loc) · 993 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
43
44
PYTHON = python
CONVERT = convert
TTX = ttx
CARGO = cargo
CARGOFLAGS =
SRC = \
Unison \
latin greek cyrillic armenian \
num num-roman runic \
comb punct arrow box currency ctrl \
math letterlike enclosed \
hangul hangul-syllable \
han han-radical \
halfwidth fullwidth \
yijing braille playing-card
SRCFILES = $(SRC:%=font/%.txt)
.PHONY: all
all: sample.html live.html sample.png unison.ttf
.PHONY: sample
sample: sample.html live.html sample.png
.PHONY: clean
clean:
-$(RM) -f .ran_process .ran_cargo sample.html live.html sample.png sample.pgm unison.json unison.ttf unison.ttx
unison.json unison.ttx: .ran_process
.ran_process: src/process.py $(SRCFILES)
$(PYTHON) src/process.py $(SRCFILES)
@touch $@
sample.html live.html sample.pgm: .ran_cargo
.ran_cargo: unison.json Cargo.toml src/*.rs
$(CARGO) run $(CARGOFLAGS) < $<
@touch $@
sample.png: sample.pgm
$(CONVERT) $< -define png:bit-depth=2 -define png:color-type=3 $@
unison.ttf: unison.ttx
$(TTX) -f -o $@ $<