-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathMakefile
More file actions
28 lines (23 loc) · 681 Bytes
/
Copy pathMakefile
File metadata and controls
28 lines (23 loc) · 681 Bytes
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
all:
@echo nothing special
lint:
yapf -ir .
prepare:
python3 -m pip install -r requirements.txt
update_svgs:
python3 shuangpin_heatmap.py --dump-all-shuangpin-layout 1 --use-dvorak 0 --output-directory svgs/qwerty
python3 shuangpin_heatmap.py --dump-all-shuangpin-layout 1 --use-dvorak 1 --output-directory svgs/dvorak
check_svgs:
python3 svg_player.py svgs/dvorak/ svgs/qwerty/
INPUT_TEXT ?= data/sample2.txt
update_heatmaps:
python3 shuangpin_heatmap.py \
--heatmap-mode 1 \
--output-directory heatmaps < $(INPUT_TEXT)
check_heatmaps:
python3 svg_player.py heatmaps
test:
python3 shuangpin_heatmap.py \
--heatmap-mode 1 \
--use-dvorak 1 \
< $(INPUT_TEXT)