sasurahime 0.1.10

macOS developer cache cleaner — scan and wipe stale caches from 40+ tools
INSTALL_DIR ?= $(HOME)/.local/bin
BINARY      := sasurahime

.PHONY: build test lint fmt install uninstall clean publish release

build:
	cargo build --release

test:
	cargo test

lint:
	cargo fmt --check
	cargo clippy --tests -- -D warnings

fmt:
	cargo fmt

install: build
	@mkdir -p $(INSTALL_DIR)
	cp target/release/$(BINARY) $(INSTALL_DIR)/$(BINARY)
	@echo "Installed to $(INSTALL_DIR)/$(BINARY)"

uninstall:
	rm -f $(INSTALL_DIR)/$(BINARY)
	@echo "Removed $(INSTALL_DIR)/$(BINARY)"

clean:
	cargo clean

publish:
	cargo publish

release: lint test build publish