-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathMakefile
46 lines (36 loc) · 967 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
.PHONY: build-debug
build-debug:
forge build --revert-strings debug
.PHONY: build
build:
forge build
.PHONY: test
test:
forge test --ffi
.PHONY: format
format:
forge fmt .
.PHONY: deploy
deploy: build
npx ts-node -T scripts/deploy.ts
.PHONY: verify-contracts
verify-contracts: build deploy
npx ts-node -T scripts/verify_contracts.ts
.PHONY: bootstrap
bootstrap: build
npx ts-node -T scripts/bootstrap_kettle.ts
.PHONY: onboard
onboard: build
npx ts-node -T scripts/onboard_kettle.ts
.PHONY: test-examples
test-examples: build
npx ts-node -T scripts/test_examples.ts
.PHONY: deploy-examples
deploy-examples: build deploy bootstrap
npx ts-node -T scripts/deploy_examples.ts
.PHONY: configure-all-tcbinfos
configure-all-tcbinfos:
# Non-PHONY! If needed, clear it manually
cd lib/sgx-tcbInfos && make
export TCB_INFO_FILES="$(shell find ./lib/sgx-tcbInfos/assets -name "tcbinfo.json" -printf "%p ")"; \
npx ts-node -T scripts/configure_tcbinfo.ts