PACKAGE = time-parser

fmt:
	cargo fmt --all

clippy:
	cargo clippy --all-targets --all-features -- -D warnings

test:
	cargo test -- --nocapture

build:
	cargo build

release:
	cargo build --release

run:
	cargo run -- parse example.log

precommit: fmt clippy test

publish:
	cargo publish

clean:
	cargo clean

help:
	@echo "Makefile commands:"
	@echo "  fmt        - Format all Rust files"
	@echo "  clippy     - Run Clippy linting"
	@echo "  test       - Run all tests"
	@echo "  build      - Build debug binary"
	@echo "  release    - Build release binary"
	@echo "  run        - Run the CLI parser"
	@echo "  precommit  - Run fmt, clippy, and tests"
	@echo "  publish    - Publish crate to crates.io"
	@echo "  clean      - Remove all build artifacts"
