-
Notifications
You must be signed in to change notification settings - Fork 428
/
Makefile
60 lines (41 loc) · 1.3 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
# Portions Copyright (c) 2015-present, Facebook, Inc. All rights reserved.
SHELL=bash -o pipefail
default: build
build:
dune build
install:
opam pin add reason . -y
# CI uses opam. Regular workflow needn't.
test-ci: install test-once-installed
test-once-installed: test
test:
esy dune runtest
test-watch:
esy dune runtest --watch
.PHONY: coverage
coverage:
find -iname "bisect*.out" -exec rm {} \;
make test-once-installed
bisect-ppx-report -ignore-missing-files -I _build/ -html coverage-after/ bisect*.out ./*/*/*/bisect*.out
find -iname "bisect*.out" -exec rm {} \;
testFormat: build test-once-installed
all_errors:
@ echo "Regenerate all the possible error states for Menhir."
@ echo "Warning: This will take a while and use a lot of CPU and memory."
@ echo "---"
menhir --explain --strict --unused-tokens src/reason-parser/reason_parser.mly --list-errors > src/reason-parser/reason_parser.messages.checked-in
clean:
dune clean
clean-for-ci:
rm -rf ./_build
.PHONY: build clean
# For publishing esy releases to npm
esy-prepublish: build
node ./scripts/esy-prepublish.js
all-supported-ocaml-versions:
# the --dev flag has been omitted here but should be re-introduced eventually
dune build @install @runtest --root .
.PHONY: all-supported-ocaml-versions
doc:
esy dune build @doc
.PHONY: doc