makefile-update
Makefile development workflow. Use when modifying Makefile or files in make/ directory.
安装与使用
请根据来源仓库和你的 AI 工具说明安装此技能。先阅读技能文件和依赖要求,再添加到工作流。
查看来源 ↗使用指南技能说明
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
使用示例
查看来源仓库中的使用示例与配置说明。
查看来源 ↗来源历史
- 收录时间
- 2026-01-20
- 索引更新时间
- 2026-01-28
- Branch
- main
收录与同步日期属于本站记录。源码修改历史请查看来源仓库。
GitHub ↗chat Comments (0)
Sign in to join the discussion and leave a comment.
No comments yet. Be the first to share your thoughts!