-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathMakefile
59 lines (42 loc) · 1.08 KB
/
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
58
59
# -*- Makefile -*-
# --------------------------------------------------------------------
.PHONY: all js merlin build build-deps run test clean
# --------------------------------------------------------------------
all: build js compiler
build:
@dune build
compiler:
$(MAKE) -C src compiler.exe
ln -fs _build/default/src/compiler.exe archetype.exe
js:
$(MAKE) -C src api.bc.js
cp -f _build/default/src/api.bc.js npm-package/dist/
demich:
$(MAKE) -C src2 demich.exe
ln -fs _build/default/src2/demich.exe demich.exe
mlw:
$(MAKE) -C src mlw.exe
cp -f _build/default/src/mlw.exe .
extract:
$(MAKE) -C src/liq extract.exe
merlin:
$(MAKE) -C src merlin
run:
$(MAKE) -C src run
test:
$(MAKE) -C src test
install:
@dune install
clean:
@dune clean
$(MAKE) -C src clean
rm -f archetype.exe npm-package/dist/api.bc.js
check:
./extra/script/check_pp.sh && ./extra/script/check_contracts.sh
_opam:
opam switch create . 4.10.2 --no-install
eval $$(opam env)
build-deps: _opam
opam install . --deps-only --working-dir -y
build-deps-dev: build-deps
opam install merlin ocp-indent -y