.PHONY: help build test clean install fmt clippy bench release
help:
@echo "Available targets:"
@echo " build - Build project"
@echo " test - Run tests"
@echo " clean - Clean build artifacts"
@echo " install - Install locally"
@echo " fmt - Format code"
@echo " clippy - Run clippy lints"
@echo " bench - Run benchmarks"
@echo " release - Build optimized release"
build:
cargo build
test:
cargo test
clean:
cargo clean
install:
cargo install --path .
fmt:
cargo fmt
clippy:
cargo clippy -- -D warnings
bench:
cargo bench
release:
cargo build --release
check: fmt clippy test
dev: fmt clippy test build
release-check: clean fmt clippy test release
size: release
@du -h target/release/flatten-rust
audit:
cargo audit
docs:
cargo doc --no-deps --open