forked from oxidizing/conformist
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
29 lines (23 loc) · 807 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
.PHONY: deps
deps: ## Install development dependencies
opam install -y dune-release merlin ocamlformat utop
OPAMSOLVERTIMEOUT=240 opam install --deps-only --with-test --with-doc -y .
eval $(opam env)
.PHONY: create_switch
create_switch:
opam switch create . --no-install --locked
eval $(opam env)
.PHONY: switch
switch: create_switch deps ## Create an opam switch and install development dependencies
.PHONY: format
format: ## Format the codebase with ocamlformat
opam exec -- dune build --root . --auto-promote @fmt
.PHONY: build
build: ## Build the project, including non installable libraries and executables
opam exec -- dune build --root .
.PHONY: clean
clean: ## Clean build artifacts and other generated files
opam exec -- dune clean --root .
.PHONY: test
test:
opam exec -- dune test