-
Notifications
You must be signed in to change notification settings - Fork 25
Expand file tree
/
Copy pathMakefile
More file actions
53 lines (45 loc) · 1.34 KB
/
Makefile
File metadata and controls
53 lines (45 loc) · 1.34 KB
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
.PHONY: build build-wasm build-tools test fmt lint clean help
# Default target
build: build-wasm build-tools
@echo "✅ Build complete"
# Build WASM contract
build-wasm:
@echo "🔨 Building Soroban contract..."
cargo build -p stellaraid-core --target wasm32-unknown-unknown --release
@echo "✅ WASM contract built successfully"
# Build CLI tools
build-tools:
@echo "🔨 Building CLI tools..."
cargo build -p stellaraid-tools
@echo "✅ CLI tools built successfully"
# Run tests
test:
@echo "🧪 Running tests..."
cargo test --workspace
@echo "✅ Tests passed"
# Format code
fmt:
@echo "🎨 Formatting code..."
cargo fmt --all
@echo "✅ Code formatted"
# Run linter
lint:
@echo "🔍 Running linter..."
cargo clippy --workspace -- -D warnings
@echo "✅ Linting passed"
# Clean build artifacts
clean:
@echo "🧹 Cleaning build artifacts..."
cargo clean
@echo "✅ Clean complete"
# Show help
help:
@echo "Available commands:"
@echo " make build - Build WASM contract and CLI tools"
@echo " make build-wasm - Build Soroban WASM contract only"
@echo " make build-tools - Build CLI tools only"
@echo " make test - Run all tests"
@echo " make fmt - Format code"
@echo " make lint - Run linter"
@echo " make clean - Clean build artifacts"
@echo " make help - Show this help message"