-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
91 lines (69 loc) · 2.06 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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
BACKEND=strike_backend
BACKEND_ID=eh7xy-aaaaa-aaaak-ak2wq-cai
HELLO_ID=ea6rm-nyaaa-aaaak-ak2wa-cai
FRONTEND=blinks_icp_frontend
prepare:
rustup target add wasm32-unknown-unknown
start:
dfx start --background
start-clean:
dfx start --background --clean
dfx canister create $(BACKEND) --specified-id $(BACKEND_ID)
stop:
dfx stop
build:
dfx build $(BACKEND) --network=local
test:
scripts/download-pocket-ic.sh
cargo test
build-staging:
dfx build $(BACKEND) --network=staging
build-ic:
dfx build $(BACKEND) --network=ic
generate-did:
scripts/generate-did.sh
generate-declaration:
dfx generate $(BACKEND)
generate: generate-did \
generate-declaration
deploy-backend: build \
generate-did
dfx deploy $(BACKEND) --specified-id $(BACKEND_ID)
deploy-ii:
dfx deps pull
dfx deps init --argument '(null)' internet-identity
dfx deps deploy
deploy-hello:
dfx canister create hello --specified-id $(HELLO_ID)
dfx deploy hello --specified-id $(HELLO_ID)
deploy-ledger:
dfx deploy icp_ledger_canister
deploy: deploy-backend \
deploy-ii \
deploy-hello
redeploy: build \
generate-did
dfx canister install $(BACKEND) --mode=reinstall
redeploy-staging: build-staging \
generate-did
dfx canister install $(BACKEND) --mode=reinstall --network=staging
dfx build $(FRONTEND) --network=staging
dfx canister install $(FRONTEND) --mode=reinstall --network=staging
# redeploy-ic: build-ic
# make generate-did
# dfx canister install $(BACKEND) --mode=reinstall --network=ic
# dfx build $(FRONTEND) --network=ic
# dfx canister install $(FRONTEND) --mode=reinstall --network=ic
upgrade: build
make generate-did
dfx canister install $(BACKEND) --mode=upgrade
upgrade-staging: build-staging
make generate-did
dfx canister install $(BACKEND) --mode=upgrade --network=staging
dfx build $(FRONTEND) --network=staging
dfx canister install $(FRONTEND) --mode=upgrade --network=staging
upgrade-ic: build-ic
make generate-did
dfx canister install $(BACKEND) --mode=upgrade --network=ic
dfx build $(FRONTEND) --network=ic
dfx canister install $(FRONTEND) --mode=upgrade --network=ic