-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathMakefile
More file actions
28 lines (22 loc) · 685 Bytes
/
Copy pathMakefile
File metadata and controls
28 lines (22 loc) · 685 Bytes
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
.PHONY: build doc bench profile longtest test clean
COMMIT = $(shell git log --pretty=format:'%h' -n 1)
build:
dune build @install
[ -e bin ] || ln -sf _build/install/default/bin bin
[ -e lib ] || ln -sf _build/install/default/lib/arbogen lib
doc:
dune build @doc
[ -e doc ] || ln -sf _build/default/_doc/_html doc
@echo Documentation available at doc/index.html
test: build
dune runtest --no-buffer
bench: build
dune exec benchs/bench.exe > bench-$(COMMIT).txt
profile:
dune clean
dune build benchs/bench.exe
perf record --call-graph=dwarg -- _build/default/benchs/bench.exe
@echo Run `perf report` to see the profiling results
clean:
dune clean
rm -f bin lib doc