-
Notifications
You must be signed in to change notification settings - Fork 6
/
Makefile
57 lines (44 loc) · 975 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
50
51
52
53
54
55
56
57
VERSION := 6.0.0
all:
@dune build
.PHONY: all
doc:
@dune build @doc
.PHONY: doc
clean:
@dune clean
.PHONY: clean
distclean: clean
@find . -name "*~" -type f -exec rm {} \;
.PHONY: distclean
tests:
@dune runtest
.PHONY: tests
bench: all
@ulimit -s unlimited && perf stat _build/default/benchmark/church.exe > /dev/null 2> perf.log
@ulimit -s unlimited && perf stat _build/default/benchmark/scott.exe > /dev/null 2>> perf.log
@ulimit -s unlimited && perf stat _build/default/benchmark/lambdas.exe > /dev/null 2>> perf.log
@cat perf.log
@rm perf.log
.PHONY: bench
promote:
@dune promote
.PHONY: promote
install:
@dune install
.PHONY: install
uninstall:
@dune uninstall
.PHONY: uninstall
## Documentation webpage
updatedoc: doc
@rm -rf docs/$(VERSION)
@cp -r _build/default/_doc/_html docs/$(VERSION)
.PHONY: updatedoc
## Release
release: distclean
git push origin
git tag -a $(VERSION)
git push origin $(VERSION)
opam publish
.PHONY: release