-
Notifications
You must be signed in to change notification settings - Fork 16
/
Makefile
55 lines (43 loc) · 1.5 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
.PHONY: build
build: # Build the public executables
dune build @install
.PHONY: test
test: build # Build and run the OUnit2 test suite and the integration tests
dune runtest --force
./TEST.sh
.PHONY: coverage
coverage: # Build and run the OUnit2 test suite and generate code coverage reports
dune runtest --instrument-with bisect_ppx --force
bisect-ppx-report html
bisect-ppx-report summary
.PHONY: harpoon-test
harpoon-test: # Run only the Harpoon intergration tests
./TEST.sh -- --harpoon
.PHONY: setup-development
setup-development: # Setup a development environment
opam switch create --description="Beluga development switch" --locked --deps-only --with-test --with-doc --yes .
.PHONY: setup-install
setup-install: # Setup a user environment for installation
opam switch create --description="Beluga installation switch" --locked --deps-only --yes .
.PHONY: install
install: # Build and install the public executables
dune build @install && dune install
.PHONY: uninstall
uninstall: # Remove the built public executables
dune uninstall
.PHONY: lock
lock: # Generate a lockfile for the dependencies in the opam repository
opam lock --yes ./beluga.opam
.PHONY: watch
watch: # Build default targets and trigger new builds on file system events
dune build --watch
.PHONY: clean
clean: # Clean the files built by dune
dune clean
.PHONY: fmt
fmt: # Format the codebase with ocamlformat
dune build @fmt --auto-promote
.PHONY: doc
doc: clean # Generate the HTML documentations
make -C doc html
dune build @doc