-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
65 lines (46 loc) · 1.26 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
53
54
55
56
57
58
59
60
61
62
63
64
65
JOBS := 4
PROVE :=prove --jobs=$(JOBS)
DETAIL = lib/mizuki/detail
JSX2JS = jsx --release --add-search-path lib --output a.jsx.js --executable node
all:
east-asian-width:
mkdir -p $(DETAIL)
perl tool/east-asian-width.pl > $(DETAIL)/east-asian-width.jsx
jsx $(DETAIL)/east-asian-width.jsx > /dev/null # syntax check
test-all: test test-tz test-release
test:
$(PROVE)
test-tz:
TZ=GMT-0 $(PROVE)
test-release:
JSX_OPTS="--release --minify" $(PROVE)
test-with-jscore:
JSX_RUNJS=js/jscore $(PROVE)
benchmark-sort:
$(JSX2JS) benchmark/sort.jsx
node a.jsx.js
js/jscore a.jsx.js
benchmark-mt:
$(JSX2JS) benchmark/mt-vs-builtin.jsx
node a.jsx.js
js/jscore a.jsx.js
benchmark-visual-width:
$(JSX2JS) benchmark/visual-width.jsx
node a.jsx.js
js/jscore a.jsx.js
benchmark-base64:
$(JSX2JS) benchmark/base64.jsx
node a.jsx.js
js/jscore a.jsx.js
benchmark-set:
$(JSX2JS) benchmark/set.jsx
node a.jsx.js
js/jscore a.jsx.js
benchmark-all: print-version benchmark-sort benchmark-mt benchmark-visual-width benchmark-base64
print-version:
uname --kernel-name --kernel-release --hardware-platform
jsx --version
node --version
note:
make benchmark-all | tee `perl -MTime::Piece -e 'print( localtime()->strftime("note/%Y-%m-%d.txt") )'` note/latest.txt
.PHONY: note