-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
49 lines (38 loc) · 787 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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
# SPDX-FileCopyrightText: 2024 Richard Mortier <[email protected]>
#
# SPDX-License-Identifier: ISC
DOCDIR = _build/default/_doc/_html/
.default: build
.PHONY: build
build:
dune build @all
.PHONY: clean
clean:
dune clean
.PHONY: install
install:
dune build @install
ln -sf ~/u/src/ocal/_build/install/default/bin/ocal ~/.local/bin/
.PHONY: uninstall
uninstall:
dune uninstall
.PHONY: test
test:
dune runtest
.PHONY: lint
lint:
dune build @lint
dune-release lint
.PHONY: doc
doc:
opam list -i --silent odoc || opam install -y odoc
dune build @doc
dune build @doc-private
.PHONY: read
read: doc
open $(DOCDIR)/index.html || open $(DOCDIR)
.PHONY: release
release:
opam list -i --silent dune-release || opam install -y dune-release
dune-release tag
dune-release -vv