Files
k-ap/Makefile
Gabriel Kaszewski 00ec90fb03
All checks were successful
CI / fmt (push) Successful in 27s
CI / clippy (push) Successful in 4m16s
CI / test (push) Successful in 5m23s
feat: add publish target to Makefile for Gitea registry
2026-07-11 10:18:55 +02:00

33 lines
644 B
Makefile

.DEFAULT_GOAL := check
# Run the full local check suite — same order as CI would.
check: fmt-check clippy test
@echo "✅ All checks passed"
# Apply rustfmt to all files.
fmt:
cargo fmt
# Check formatting without modifying files (CI-safe).
fmt-check:
cargo fmt --check
# Run Clippy and treat warnings as errors.
clippy:
cargo clippy -- -D warnings
# Run the test suite.
test:
cargo test
# Apply fmt + clippy auto-fixes in one shot.
fix:
cargo fmt
cargo clippy --fix --allow-dirty --allow-staged
# Publish to the gitea registry.
publish: check
cargo publish --registry gitea
.PHONY: check fmt fmt-check clippy test fix publish