-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathMakefile
More file actions
70 lines (47 loc) · 1.42 KB
/
Copy pathMakefile
File metadata and controls
70 lines (47 loc) · 1.42 KB
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
66
67
68
69
70
DUNE = opam exec -- dune
all: build run
build:
$(DUNE) build Main/ace.exe
run:
$(DUNE) exec ./Main/ace.exe
test: buildt runt
buildt:
$(DUNE) build Main/test.exe
runt:
$(DUNE) exec ./Main/test.exe
save: builds runs
builds:
$(DUNE) build Main/save_edit.exe
runs:
$(DUNE) exec ./Main/save_edit.exe
portable: buildp runp
buildp:
$(DUNE) build Main/ace_p.exe
runp:
$(DUNE) exec ./Main/ace_p.exe
js:
$(DUNE) build --profile release Main/ace_js.bc.js
cp -f _build/default/Main/ace_js.bc.js html/ace_js.bc.js
# Workaround: js_of_ocaml emits a line break after 'static' in class bodies,
# which Safari mis-parses as an instance field (breaks MlInt64.UNSIGNED_MAX).
perl -0777 -pi -e 's/([{};])static\r?\n/$$1static /g' html/ace_js.bc.js
data: buildd rund
buildd:
$(DUNE) build Main/pkmn_data.exe
rund:
$(DUNE) exec ./Main/pkmn_data.exe
datajs:
$(DUNE) build Main/pkmn_data_js.bc.js
seed: buildseed runseed
buildseed:
$(DUNE) build Main/seed_tools.exe
runseed:
$(DUNE) exec ./Main/seed_tools.exe
seedjs:
$(DUNE) build --profile release Main/seed_tools_js.bc.js
cp -f _build/default/Main/seed_tools_js.bc.js html/scripts/seed/seed_tools_js.bc.js
# Workaround: js_of_ocaml emits a line break after 'static' in class bodies,
# which Safari mis-parses as an instance field (breaks MlInt64.UNSIGNED_MAX).
perl -0777 -pi -e 's/([{};])static\r?\n/$$1static /g' html/scripts/seed/seed_tools_js.bc.js
clean:
$(DUNE) clean