Best practices for Go project Makefiles. Use when creating or modifying a Go project Makefile: adding/reviewing targets, PHONY declarations, tab indentation, docker compose v2 targets.
설치
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
Best practices for Go project Makefiles. Use when creating or modifying a Go project Makefile: adding/reviewing targets, PHONY declarations, tab indentation, docker compose v2 targets.
10x Makefile
Reference
Resource
Purpose
./references/makefile-template.md
Standard template with all required targets
MUST DO
Follow the exact structure in the template: variables → PHONY → standard targets → utility targets → project-specific targets
Sort all targets alphabetically within each section
Use TABS for indentation, never spaces
Document every target with ## target: description comment
Add all targets to the .PHONY declaration
Use docker compose (v2), never docker-compose (v1)
Silence non-essential commands with @
List tools as a dependency for targets that require external tools (e.g., audit, doc)
MUST NOT
Add targets not explicitly requested — the template is the complete minimal standard