-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
42 lines (32 loc) · 820 Bytes
/
Makefile
File metadata and controls
42 lines (32 loc) · 820 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
36
37
38
39
40
41
42
.PHONY: build release install test test-e2e test-all clean run ui
# Default target
all: build
# Debug build
build:
cargo build --features tui
# Release build
release:
cargo build --release --features tui
# Build and install to ~/.cargo/bin
install: release
@pkill -x kto 2>/dev/null || true
@sleep 0.2
cp target/release/kto ~/.cargo/bin/kto
@echo "Installed kto v$$(grep '^version' Cargo.toml | cut -d'"' -f2) to ~/.cargo/bin/kto"
# Run unit tests
test:
cargo test
# Run E2E change detection tests
test-e2e: build
python3 tests/e2e/run_suite.py
# Run all tests (unit + E2E)
test-all: test test-e2e
# Clean build artifacts
clean:
cargo clean
# Run debug build directly
run:
cargo run --features tui -- ui
# Run release build directly (without installing)
ui:
cargo run --release --features tui -- ui