-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
70 lines (54 loc) · 1.02 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
.PHONY: build
build:
@dune build @all -j8
.PHONY: build-js
build-js:
@dune build fex_js/fex.bc.js --profile=release -j8
.PHONY: install-deps
install-deps:
@opam install . --deps-only --with-doc --with-test
.PHONY: update
update:
opam update
.PHONY: upgrade
upgrade:
opam upgrade
.PHONY: lock
lock:
opam lock -d fex
.PHONY: update-deps
update-deps: update upgrade lock
.PHONY: watch
watch:
@dune build @all --watch -j8
.PHONY: build-js
watch-js:
@dune build fex_js/fex.bc.js --profile=release -w -j8
.PHONY: install
install:
@dune install
.PHONY: test
test:
@dune runtest --force
.PHONY: watch-test
watch-test:
@dune runtest -w
.PHONY: coverage
coverage:
@dune runtest --instrument-with bisect_ppx --force
@bisect-ppx-report summary --per-file
@bisect-ppx-report html
.PHONY: fmt
format:
@dune build @fmt --auto-promote
.PHONY: clean
clean:
@dune clean
@rm -Rf _coverage
.PHONY: doc
doc:
@dune build @doc
.PHONY: doc-serve
doc-serve:
@dune build @doc -w &
@(cd _build/default/_doc/_html/; cohttp-server-lwt)