-
Notifications
You must be signed in to change notification settings - Fork 465
/
Copy pathMakefile
69 lines (48 loc) · 1.36 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
66
67
68
69
SHELL = /bin/bash
build:
dune build
./scripts/copyExes.js
watch:
dune build -w
bench:
dune exec -- syntax_benchmarks
dce:
opam exec reanalyze.exe -- -dce-cmt _build
ninja/ninja:
./scripts/buildNinjaBinary.js
ninja: ninja/ninja
test: lib
dune exec -- node scripts/ciTest.js -all
test-syntax: build
dune exec -- syntax_tests
dune exec -- bash ./scripts/test_syntax.sh
make reanalyze
bash ./scripts/testok.sh
test-syntax-roundtrip: build
dune exec -- syntax_tests
ROUNDTRIP_TEST=1 dune exec -- bash ./scripts/test.sh
make reanalyze
bash ./scripts/testok.sh
test-gentype: build
make -C jscomp/gentype_tests/typescript-react-example test
test-all: test test-gentype
reanalyze:
reanalyze.exe -set-exit-code -all-cmt _build/default/res_syntax -suppress res_syntax/testrunner
lib: build ninja/ninja
dune exec -- node scripts/ninja.js config
dune exec -- node scripts/ninja.js build
artifacts: lib
./scripts/prebuilt.js
./scripts/makeArtifactList.js
format:
dune build @fmt --auto-promote
checkformat:
dune build @fmt
clean-gentype:
make -C jscomp/gentype_tests/typescript-react-example clean
clean:
dune clean
./scripts/ninja.js clean
clean-all: clean clean-gentype
.DEFAULT_GOAL := build
.PHONY: build watch ninja bench dce test test-syntax test-syntax-roundtrip test-gentype test-all lib artifacts format checkformat clean-gentype clean clean-all