-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
46 lines (35 loc) · 1.04 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
.DEFAULT_GOAL := all
.PHONY: all
all:
opam exec -- dune build --root . @install
.PHONY: deps
deps: ## Install development dependencies
opam install -y dune-release ocamlformat ocaml-lsp-server
opam install --deps-only --with-test --with-doc -y .
.PHONY: lock
lock: ## Generate a lock file
opam lock .
.PHONY: build
build:
opam exec -- dune build --root .
.PHONY: build-watch
build-watch:
opam exec -- dune build --root . --watch
.PHONY: install
install: all ## Install the packages on the system
opam exec -- dune install --root .
.PHONY: test
test: ## Run the all tests
opam exec -- dune build --root . @runtest
.PHONY: clean
clean: ## Clean build artifacts and other generated files
opam exec -- dune clean --root .
.PHONY: utop
utop: ## Run a REPL and link with the project's libraries
opam exec -- dune utop --root . lib -- -implicit-bindings
.PHONY: format
format: ## Format the codebase with ocamlformat
opam exec -- dune build --root . --auto-promote @fmt
.PHONY: doc
doc: ## Build the documentation
opam exec -- dune build --root . @doc