diff --git a/Makefile b/Makefile index e69de29..c0355e7 100644 --- a/Makefile +++ b/Makefile @@ -0,0 +1,44 @@ +.PHONY: build build-egui dev check clippy fmt fmt-check test run run-egui install install-egui clean + +RELEASE_BIN := target/release/k-launcher +EGUI_BIN := target/release/k-launcher-egui +INSTALL_DIR := $(HOME)/.local/bin + +build: + cargo build --release + +build-egui: + cargo build --release -p k-launcher --features egui --bin k-launcher-egui + +dev: + cargo build + +check: + cargo check --workspace + +clippy: + cargo clippy --workspace -- -D warnings + +fmt: + cargo fmt --all + +fmt-check: + cargo fmt --all -- --check + +test: + cargo test --workspace + +run: + cargo run --release + +run-egui: + cargo run --release -p k-launcher --features egui --bin k-launcher-egui + +install: build + install -Dm755 $(RELEASE_BIN) $(INSTALL_DIR)/k-launcher + +install-egui: build-egui + install -Dm755 $(EGUI_BIN) $(INSTALL_DIR)/k-launcher-egui + +clean: + cargo clean