Skip to content

Instantly share code, notes, and snippets.

@13hulk
Created January 29, 2026 11:13
Show Gist options
  • Select an option

  • Save 13hulk/e237fb540f20e93a3bf8b93a3a1893e3 to your computer and use it in GitHub Desktop.

Select an option

Save 13hulk/e237fb540f20e93a3bf8b93a3a1893e3 to your computer and use it in GitHub Desktop.
Pybites Rust Cohort: A minimal Makefile
.PHONY: help build test run fmt clippy check clean pre-commit-install all
help:
@echo "Available commands:"
@echo " make build - Build the project"
@echo " make test - Run tests"
@echo " make run - Run the binary"
@echo " make fmt - Format code"
@echo " make fmt-check - Check formatting"
@echo " make clippy - Run linter"
@echo " make check - Quick compile check"
@echo " make clean - Remove build artifacts"
@echo " make pre-commit-install - Install pre-commit hooks"
@echo " make all - Run fmt, clippy, test, build"
build:
cargo build
test:
cargo test
run:
cargo run
fmt:
cargo fmt
fmt-check:
cargo fmt --check
clippy:
cargo clippy -- -D warnings
check:
cargo check
clean:
cargo clean
pre-commit-install:
pre-commit install
all: fmt clippy test build
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment