-
Notifications
You must be signed in to change notification settings - Fork 16
/
Makefile
42 lines (30 loc) · 759 Bytes
/
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
# copyright (c) 2014, guillaume bury
FLAGS?=
BINDIR=_build/install/default/bin
all: build
watch:
dune build $(FLAGS) -w @check
build:
dune build $(FLAGS) @install
top:
dune utop
doc:
dune build $(FLAGS) @doc
gentests: $(filter-out $(wildcard tests/**/*.t/**/*),$(wildcard tests/**/*))
dune exec -- tools/gentests.exe tests/
test: gentests
dune build $(FLAGS) @runtest
promote: gentests
-dune build $(FLAGS) @runtest
dune promote $(FLAGS)
coverage:
$(MAKE) clean
dune runtest --instrument-with bisect_ppx --force
bisect-ppx-report html
@xdg-open _coverage/index.html
bisect-ppx-report summary
clean:
find . -name '*.coverage' | xargs rm -f
rm -rf _coverage
dune clean
.PHONY: all watch dune doc gentests test promote coverage clean