1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38
SHELL := /bin/sh .PHONY: run parse file author test fmt clippy precommit build clean doc run: cargo run -- --help parse: # Usage: make parse COLOR=#1A2B3C cargo run -- parse $(COLOR) file: # Usage: make file PATH=./colors.txt cargo run -- file $(PATH) author: cargo run -- author test: cargo test --all fmt: cargo fmt --all clippy: cargo clippy --all-targets --all-features -- -D warnings precommit: fmt clippy test @echo "Pre-commit checks passed." build: cargo build --release clean: cargo clean doc: cargo doc --no-deps --open