.PHONY: all check format lint test bench bench-update build build-release run clean install help
all: format check lint test build
check:
cargo check
format:
cargo fmt --all
lint:
cargo clippy --all-targets -- -D warnings
test:
cargo test
bench:
cargo bench
bench-update:
./scripts/update_bench_table.sh
build:
cargo build
build-release:
cargo build --release
run:
cargo run
clean:
cargo clean
install: build-release
cargo install --path .
help:
@echo "forjar - Available targets:"
@echo " all - Run format, check, lint, test, and build"
@echo " check - Type check the code"
@echo " format - Format code with rustfmt"
@echo " lint - Run clippy linter"
@echo " test - Run tests"
@echo " bench - Run benchmarks"
@echo " build - Build debug binary"
@echo " build-release - Build optimized release binary"
@echo " run - Run the application"
@echo " clean - Remove build artifacts"
@echo " install - Install the binary"
@echo " help - Show this help message"