| name | makefile-update |
| description | Makefile development workflow. Use when modifying Makefile or files in make/ directory. |
Makefile Workflow
Workflow for Makefile changes.
Prerequisites
Use git-workflow Skill for branch, commit, and PR workflow.
Applicable Files
| Path | Description |
|---|
Makefile | Main makefile |
make/*.mk | Included makefiles |
Structure
Makefile # Main entry point, includes make/*.mk
make/
├── go.mk # Go-related targets
├── docker.mk # Docker targets
├── atlas.mk # Database migration targets
├── sqlc.mk # SQLC generation targets
└── ...
Verification Commands
make mk-lint
Manual Checks
make help
make -n {target}
Guidelines
Style
- Use tabs for indentation (required by Make)
- Use
.PHONY for non-file targets
- Add help text for targets
- Group related targets
Best Practices
Example Target
.PHONY: my-target
my-target: ## Description of target
@echo "Running my-target..."
command1
command2
Verification Checklist
Commit Format
chore(make): {brief description}
- {change 1}
- {change 2}
Closes #{issue_number}
Related Skills
git-workflow - Branch, commit, PR workflow