forked from Haroldwonder/AnchorKit
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
31 lines (24 loc) · 620 Bytes
/
Copy pathMakefile
File metadata and controls
31 lines (24 loc) · 620 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
.PHONY: build test lint fmt clean deploy-testnet help
## build: Build the contract in release mode
build:
cargo build --release
## test: Run all tests
test:
cargo test
## lint: Run clippy with warnings as errors
lint:
cargo clippy -- -D warnings
## fmt: Format code with rustfmt
fmt:
cargo fmt
## clean: Remove build artifacts
clean:
cargo clean
## deploy-testnet: Deploy contract to Stellar testnet
deploy-testnet:
soroban contract deploy \
--wasm target/wasm32-unknown-unknown/release/anchor_kit.wasm \
--network testnet
## help: Show this help message
help:
@grep -E '^## ' Makefile | sed 's/## //'