-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
49 lines (41 loc) · 898 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
SHELL = /bin/bash
.PHONY: all
all: install
.PHONY: node_modules
.SILENT: node_modules
node_modules:
pushd src/frontend/src; yarn; popd
.PHONY: install
.SILENT: install
install: clean
./scripts/install.sh
.PHONY: init-local
.SILENT: init-local
init-local:
./scripts/initalize_local_balance.sh $(II_PRINCIPAL)
#example make init-local II_PRINCIPAL=5dsno-hmmf7-lzevk-7thyg-bcnj2-txto2-jonxs-pipfr-z2imz-2q5cd-5qe
.PHONY: build
.SILENT: build
build:
dfx canister create --all
dfx build
.PHONY: frontend
.SILENT: frontend
frontend: node_modules
cd src/frontend/src && yarn build && yarn dev
.PHONY: test
.SILENT: test
test:
./test/demo.sh
./test/trade.sh
./test/transfer.sh
.PHONY: clean
.SILENT: clean
clean:
dfx stop
rm -fr .dfx
rm -fr src/frontend/node_modules/
rm -fr src/declarations/
rm -fr src/frontend/declarations/
rm -fr src/frontend/.next
rm -fr src/frontend_assets