.PHONY: build run test fmt clippy clean help
all: build
build:
@echo "Building the project..."
cargo build --release
run:
@echo "Running the project..."
cargo run --release
test:
@echo "Running tests..."
cargo test
fmt:
@echo "Formatting the code..."
cargo fmt
clippy:
@echo "Linting the code with Clippy..."
cargo clippy -- -D warnings
clean:
@echo "Cleaning the project..."
cargo clean
help:
@echo "Available commands:"
@echo " make build - Build the project in release mode"
@echo " make run - Run the project"
@echo " make test - Run tests"
@echo " make fmt - Format the code"
@echo " make clippy - Lint the code with Clippy"
@echo " make clean - Clean the project"
@echo " make help - Show this help message"