-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmakefile
42 lines (36 loc) · 845 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
.PHONY: test
test:
dune exec --force tests/array_like_test.exe
.PHONY: bench_access
bench_access:
dune exec --force --profile=release tests/bench_access.exe
.PHONY: cover
cover: clean
dune exec --force --instrument-with bisect_ppx tests/array_like_test.exe
bisect-ppx-report html
bisect-ppx-report summary
.PHONY: doc
doc: odoc.css
rm -rf _doc
dune build @doc
cp -r _build/default/_doc _doc
[ -f odoc.css ] && cp -f odoc.css _doc/_html/odoc.css
.PHONY: clean
clean:
dune clean
rm -rf _doc
rm -rf _coverage
rm -f bisect*.coverage
.PHONY: width80
width80:
find . -name '*.ml*' \
| grep -e '^./src' -e '^./tests' \
| grep -e '\.mli\?$$' \
| xargs grep --color -E -e '^.{80,}| $$' \
|| echo 'OK'
.PHONY: print
print:
find . -name '*.ml' \
| grep -e '^./src' \
| xargs grep --color -e 'print' \
|| echo 'OK'