-
Notifications
You must be signed in to change notification settings - Fork 6
/
Makefile
44 lines (36 loc) · 1008 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
ENV ?= dev
.PHONY: help
help: # Show help for each of the Makefile recipes.
@grep -E '^[a-zA-Z0-9 -]+:.*#' Makefile | sort | while read -r l; do printf "\033[1;32m$$(echo $$l | cut -f 1 -d':')\033[00m:$$(echo $$l | cut -f 2- -d'#')\n"; done
.PHONY: deps
deps: # install npm dependencies
deps:
npm i
.PHONY: watch
watch: # watcher on the contract code
watch:
cargo watch -s "cargo contract check" -c
.PHONY: release
release: # build release binary and contract artifacts (c-c)
release:
cargo +nightly contract build --release
.PHONY: compile
compile: # build release binary and contract artifacts (typechain)
compile:
npm run compile
.PHONY: devnet-azero
devnet: # Run azero devnet
devnet:
docker-compose -f ./devnet-azero/devnet-azero-compose.yml up
.PHONY: clean
clean: # Remove all node data
clean:
cd devnet-azero && rm -rf \
5*/chains/a0dnet1/db \
5*/chains/a0dnet1/network \
5*/backup-stash \
&& echo "Done cleaning"
.PHONY: deploy
deploy: # Deploy contracts
deploy:
npm run deploy