-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
72 lines (53 loc) · 1.33 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
70
71
72
# .PHONY: build clean test doc
all: build
# boot should install the opam tool as well
.PHONY: pin
pin:
@ opam pin add cuid . -n --yes --working-dir
.PHONY: unpin
unpin:
@ opam pin remove cuid --yes --working-dir
.PHONY: vendor
vendor:
@ opam install . --deps-only --yes --working-dir
.PHONY: vendor-test
vendor-test:
@ opam install . --deps-only --with-test --yes --working-dir
.PHONY: utop
utop:
@ opam exec dune utop lib/cuid
build:
@ opam exec dune build
test: clean build
@ opam exec dune build @runtest
quick-test: clean build
@ ALCOTEST_QUICK_TESTS=1 opam exec dune build @runtest
doc: build
@ opam exec dune build @doc
.PHONY: cleanup
cleanup:
@ rm -fv *~
@ rm -fv lib/*~
@ rm -fv lib_test/*~
@ rm -fv .*.un~
@ rm -fv lib/.*.un~
@ rm -fv lib_test/.*.un~
@ rm -f `find . -name 'bisect*.out'`
@ find . -name '*.coverage' | xargs rm -f
.PHONY: clean
clean: cleanup
@ opam exec dune clean
install: build
@ opam exec dune build @install
@ opam exec dune install cuid
uninstall:
@ opam exec dune uninstall cuid
.PHONY: coverage
coverage: clean vendor
@ dune runtest --instrument-with bisect_ppx --force
@ bisect-ppx-report html --title ocaml-cuid --tab-size 2 -o coverage --verbose
@ opam exec bisect-ppx-report summary --verbose
.PHONY: report
report: coverage
@ opam exec bisect-ppx-report send-to Coveralls
# END