| name | makefile |
| description | Makefile patterns for project automation and build tasks. Use when user asks to "create Makefile", "add make target", "automate with make", "build commands", or set up project automation with GNU Make. |
Makefile
Project automation with GNU Make.
Basic Structure
APP_NAME := myapp
VERSION := 1.0.0
.DEFAULT_GOAL := help
.PHONY: help build run test clean
help: ## Show this help
@grep -E '^[a-zA-Z_-]+:.*?
build: ## Build the application
go build -o bin/$(APP_NAME) ./cmd/$(APP_NAME)
run: ## Run the application
go run ./cmd/$(APP_NAME)
test: ## Run tests
go test -v ./...
clean: ## Clean build artifacts
rm -rf bin/ dist/
Common Patterns
Development Workflow
.PHONY: dev build test lint format
dev: ## Start development server
npm run dev
build: ## Build for production
npm run build
test: ## Run tests
npm test
lint: ## Run linter
npm run lint
format: ## Format code
npm run format
check: lint test ## Run all checks