-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
73 lines (51 loc) · 1.32 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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
DIST=dist
BUILD=_build/default
all: contracts lib server
.PHONY: contracts
contracts: build copy
copy: dist-dir
@cp -f $(BUILD)/contracts/*.mligo $(DIST)/ligo
@cp -f $(BUILD)/contracts/*.tz $(DIST)/michelson
@cp -f $(BUILD)/contracts/*.json $(DIST)/michelson
@cp -f $(BUILD)/contracts/for_tests/fa2.json $(DIST)/michelson/for_tests/test_fa2.json
dist-dir:
@mkdir -p $(DIST)/ligo
@mkdir -p $(DIST)/michelson/for_tests
.PHONY: build
build:
@dune build
clean:
@dune clean
@rm -rf dist/js
fmt:
@dune build @fmt --auto-promote
_opam:
@opam switch create . --empty --no-install
build-deps: _opam
@opam install . --deps-only -y
ts-deps:
# @sudo npm i -g typescript
@npm --prefix tezos-lib install
ts-dev-deps: ts-deps
@npm --prefix tezos-lib install --dev
lib:
@npm --prefix tezos-lib run build
build-tests:
@npm --prefix tezos-lib run build-test
test:
@npm --prefix tezos-lib test
server-deps:
@npm --prefix server install
server-dev-deps:
@npm --prefix server install --dev
.PHONY: server
server:
@npm --prefix server run build
docker:
@docker build -f build/Dockerfile -t tezos-adapter:latest .
start-sandbox-network:
@npx --prefix tezos-lib ts-node tezos-lib/tests/sandbox.ts start
stop-sandbox-network:
@npx --prefix tezos-lib ts-node tezos-lib/tests/sandbox.ts stop
redeploy-contracts:
@scripts/redeploy.sh