-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
50 lines (36 loc) · 1.31 KB
/
Makefile
File metadata and controls
50 lines (36 loc) · 1.31 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
.PHONY: lint check test clippy fmt fmt-check clippy-fix fix build build-dev install install-dev
# Run all CI checks (matches .github/workflows/pr.yml)
lint: check test clippy
# Individual check targets
check:
cargo check --workspace
test:
cargo test -p spicebench
clippy:
cargo clippy -p spicebench --all-targets -- -D warnings
# Format checking
fmt-check:
cargo fmt --all -- --check
# Fix targets
fmt:
cargo fmt --all
clippy-fix:
cargo clippy -p spicebench --all-targets --fix --allow-dirty --allow-staged
# Run all fixes
fix: fmt clippy-fix
################################################################################
# Build targets #
################################################################################
build:
cargo build --release -p spicebench
build-dev:
cargo build -p spicebench
################################################################################
# Install targets #
################################################################################
install: build
mkdir -p ~/.spice/bin
install -m 755 target/release/spicebench ~/.spice/bin/spicebench
install-dev: build-dev
mkdir -p ~/.spice/bin
install -m 755 target/debug/spicebench ~/.spice/bin/spicebench