SERVICE_NAME := mcp-rust
REGION := us-central1
.PHONY: all build run clean release test fmt clippy deploy help
all: build
build:
@echo "Building the Rust project..."
@cargo build
run:
@echo "Running the Rust project..."
@cargo run
clean:
@echo "Cleaning the project..."
@cargo clean
release:
@echo "Building Release..."
@cargo build --release
test:
@echo "Running tests..."
@cargo test
fmt:
@echo "Formatting code..."
@cargo fmt --all -- --check
clippy:
@echo "Linting code..."
@cargo clippy -- -D warnings
deploy:
@echo "Submitting build to Google Cloud Build..."
@gcloud builds submit . --config cloudbuild.yaml
help:
@echo "Makefile for the Rust project"
@echo ""
@echo "Usage:"
@echo " make <target>"
@echo ""
@echo "Targets:"
@echo " all (default) same as 'build'"
@echo " build Build the project for development"
@echo " run Run the project"
@echo " clean Clean the project"
@echo " release Build the project for release"
@echo " test Run tests"
@echo " fmt Check formatting"
@echo " clippy Lint the code"
@echo " deploy Submit the build to Google Cloud Build"