-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
54 lines (41 loc) · 1.08 KB
/
Copy pathMakefile
File metadata and controls
54 lines (41 loc) · 1.08 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
54
.PHONY: build install test clean fmt lint check all
# Default target
all: build
# Build release binaries
build:
cargo build --locked --release -p runbox-cli -p runbox-daemon
# Build only CLI (faster, skips daemon)
build-cli:
cargo build --locked --release -p runbox-cli
# Install to ~/.cargo/bin
install: build
cp target/release/runbox ~/.cargo/bin/runbox
cp target/release/runbox-daemon ~/.cargo/bin/runbox-daemon
@echo "Installed runbox and runbox-daemon to ~/.cargo/bin"
# Install only CLI
install-cli: build-cli
cp target/release/runbox ~/.cargo/bin/runbox
@echo "Installed runbox to ~/.cargo/bin"
# Run all tests
test:
cargo test --locked --workspace
# Run tests with output
test-verbose:
cargo test --locked --workspace -- --nocapture
# Format code
fmt:
cargo fmt --all
# Check formatting
fmt-check:
cargo fmt --all -- --check
# Run clippy
lint:
cargo clippy --locked --workspace -- -D warnings
# Check (compile without codegen)
check:
cargo check --locked --workspace
# Clean build artifacts
clean:
cargo clean
# Full CI check: fmt, lint, test
ci: fmt-check lint test