-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
39 lines (26 loc) · 853 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
# expected make version >= 3.82
.ONESHELL:
CARGO_TARGET_DIR =$(shell pwd)
WEB_DIR =$(shell pwd)/web
POSTS_DIR =$(shell pwd)/contracts/posts
LOCUTUS_DIR=$(shell cd locutus && pwd)
run-prep:
rm -rf /tmp/locutus
build-p2p:
cd $(LOCUTUS_DIR)/crates/locutus-core/examples
cargo build
build-tool:
cd $(LOCUTUS_DIR)/crates/locutus-node
cargo build
webapp-archive:
webapp-contract:
cd $(WEB_DIR)
CARGO_TARGET_DIR="${CARGO_TARGET_DIR}" ldt build
posts:
cd $(POSTS_DIR)
CARGO_TARGET_DIR="${CARGO_TARGET_DIR}" ldt build
build: build-tool posts webapp
run: run-prep build
locutus/target/debug/ldt publish --code build/locutus/poc_proposal_assessment.wasm --state build/locutus/contract-state
locutus/target/debug/ldt publish --code build/locutus/poc_proposal_assessment_posts.wasm --state build/locutus/contract-state
locutus-node local