-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
41 lines (30 loc) · 813 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
.PHONY: all clean native debug sanity test profile test-contracts main.native main.d.byte
COLORIZE=|(ack 'File "[^"]+", line [0-9]+, characters [0-9]+-[0-9]+:' --passthru --color || true)
# COLORIZE=
OCB_FLAGS=-use-ocamlfind -use-menhir -I src -pkgs str -pkgs unix
OCB=ocamlbuild $(OCB_FLAGS)
SHELLFLAGS=-o pipefail
all: native debug
debug: lamtez.d
native: lamtez
lamtez.d: main.d.byte
cp $< $@
lamtez: main.native
cp $< $@
clean:
$(OCB) -clean
$(RM) *.aux *.log
main.native:
$(OCB) $@ $(COLORIZE)
profile: sanity
$(OCB) -tag profile main.native
main.d.byte:
$(OCB) -tag debug $@ $(COLORIZE)
# check that menhir is installed, use "opam install menhir"
sanity:
which menhir
test: debug native
mkdir -p michelson
./test/run-tests.sh
test-contracts: debug native
./test/run-tests.sh contracts