makefile-update
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 # Lint makefiles
Manual Checks
# List all targets
make help
# Dry run (if supported)
make -n {target}
Guidelines
Style
- Use tabs for indentation (required by Make)
- Use
.PHONYfor non-file targets - Add help text for targets
- Group related targets
Best Practices
- Targets are
.PHONYif not creating files - Dependencies are correct
- Variables use
?=for defaults - Help text exists for main targets
Example Target
.PHONY: my-target
my-target: ## Description of target
@echo "Running my-target..."
command1
command2
Verification Checklist
-
make mk-lintpasses - Target runs correctly
- Dependencies work
- Help text is accurate
Commit Format
chore(make): {brief description}
- {change 1}
- {change 2}
Closes #{issue_number}
Related Skills
git-workflow- Branch, commit, PR workflow
More from hiromaily/go-crypto-wallet
docs-update
Documentation update workflow. Use when modifying files in docs/ directory or any markdown files (*.md).
33btc-terminology
Critical Bitcoin terminology rules to prevent confusion between bech32m (encoding) and taproot (address type). Use when working on BTC-related code, config files, or shell scripts.
33shell-scripts
Shell script development workflow. Use when modifying files in scripts/ directory or any *.sh files.
33db-migration
Database schema and migration workflow. Use when modifying database schemas in tools/atlas/ or SQLC queries in tools/sqlc/.
30openspec-propose
Propose a new change with all artifacts generated in one step. Use when the user wants to quickly describe what they want to build and get a complete proposal with design, specs, and tasks ready for implementation.
23mockery
>
14