forked from spool-labs/tape
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
35 lines (26 loc) · 962 Bytes
/
Copy pathMakefile
File metadata and controls
35 lines (26 loc) · 962 Bytes
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
.PHONY: clean build-dev validator local test example metadata docs release
clean:
@rm -rf test-ledger
metadata:
@mkdir -p target/deploy
@solana program dump --url mainnet-beta metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s metadata.so && mv metadata.so target/deploy/metadata.so
build-dev: metadata
@cd program && cargo build-sbf --features airdrop
test: metadata
@cd program && cargo test-sbf --features airdrop
example: build-dev
@cd example && cargo test-sbf --features airdrop
docs:
cargo doc --workspace --no-deps --open
release:
ifndef VERSION
$(error VERSION is not set. Usage: make release VERSION=0.1.6)
endif
cargo release $(VERSION) --workspace --execute
validator:
solana-test-validator \
--clone-upgradeable-program metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s \
--bpf-program tape9hFAE7jstfKB2QT1ovFNUZKKtDUyGZiGQpnBFdL \
target/deploy/tape.so \
--url https://api.mainnet-beta.solana.com
local: clean build-dev validator