.PHONY: build install clean release-all dev test fmt lint help
build:
cargo build --release
install: build
./install.sh
clean:
cargo clean
release-all:
cargo build --release --target x86_64-unknown-linux-gnu
cargo build --release --target x86_64-apple-darwin
cargo build --release --target aarch64-apple-darwin
cargo build --release --target x86_64-pc-windows-gnu
dev:
cargo build
./target/debug/repos
test:
cargo test
fmt:
cargo fmt
lint:
cargo clippy -- -D warnings
help:
@echo "Available targets:"
@echo " build - Build optimized release binary"
@echo " install - Install the tool locally"
@echo " clean - Remove build artifacts"
@echo " dev - Build and run debug version"
@echo " test - Run all tests"
@echo " fmt - Format code with rustfmt"
@echo " lint - Lint code with clippy"
@echo " release-all - Build for multiple platforms"
@echo " help - Show this help message"