.PHONY: build release install test clean run ui
all: build
build:
cargo build --features tui
release:
cargo build --release --features tui
install: release
@pkill -x kto 2>/dev/null || true
@sleep 0.2
cp target/release/kto ~/.local/bin/kto
@echo "Installed kto v$$(grep '^version' Cargo.toml | cut -d'"' -f2) to ~/.local/bin/kto"
test:
cargo test
clean:
cargo clean
run:
cargo run --features tui -- ui
ui:
cargo run --release --features tui -- ui