-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
49 lines (35 loc) · 848 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
# As suggested by Issuu:
#
# https://engineering.issuu.com/2018/11/20/our-current-ocaml-best-practices-part-1
all: build
.PHONY: clean build install test fmt doc open-doc api-doc open-api-doc
clean:
dune clean
build:
dune build
install:
opam install .
test:
dune runtest --force
fmt:
dune build @fmt --auto-promote
doc:
cd docs && make html
open-doc:
xdg-open "file://$(shell pwd)/docs/_build/html/index.html" ||\
open docs/_build/html/index.html
api-doc:
dune build @doc
open-api-doc:
xdg-open "file://$(shell pwd)/_build/default/_doc/_html/index.html" ||\
open _build/default/_doc/_html/index.html
#
# Commands for making the act paper
# (These aren't run by default)
#
paper: paper/paper.pdf
paper/paper.pdf: paper/paper.tex
cd paper && latexmk -pdf paper
.PHONY: clean-paper
clean-paper:
cd paper && latexmk -C paper