forked from rescript-lang/rescript
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
69 lines (47 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
66
67
68
69
SHELL = /bin/bash
DUNE_BIN_DIR = ./_build/install/default/bin
build:
dune build
./scripts/copyExes.js
watch:
dune build -w
bench:
$(DUNE_BIN_DIR)/syntax_benchmarks
dce:
reanalyze.exe -- -dce-cmt _build
ninja/ninja:
./scripts/buildNinjaBinary.js
ninja: ninja/ninja
test: lib
node scripts/ciTest.js -all
test-syntax:
bash ./scripts/test_syntax.sh
make reanalyze
bash ./scripts/testok.sh
test-syntax-roundtrip:
ROUNDTRIP_TEST=1 bash ./scripts/test.sh
make reanalyze
bash ./scripts/testok.sh
test-gentype:
make -C jscomp/gentype_tests/typescript-react-example clean test
test-all: test test-gentype
reanalyze:
reanalyze.exe -set-exit-code -all-cmt _build/default/res_syntax -suppress res_syntax/testrunner
lib: ninja/ninja
node scripts/ninja.js config
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