llm instructions: makefiles, reformat local makefile - #76
Conversation
The help target grepped a flat list, so 30 targets printed as 30 lines with no hint which of them are checks, which install things and which touch $HOME. awk instead of grep+sed: same one-liner shape, plus '##@ Group' section headings parsed out of the banner comments that were already there. claude-settings-test moves up into QA, where it belongs and where qa already called it from - under printed headings it was landing in 'Apps and packages'.
|
Reviewed the branch against BSD awk + Make 3.81 on macOS and gawk / mawk / Fixed in b31ce81, all three in the doc I wrote, none in the Makefile:
Also reflowed two comment blocks that the Left alone, four latent awk edge cases, none reachable from any line in the file One thing not fixed: 2c00688's subject says |
worktree-makefile-help-conventionrebased onto main. Both commits are real workhere — nothing to drop, unlike #75 — so both are in, one per step.
##@ Groupheadings in the help output. 30 targets printed as 30 flat lineswith no hint which are checks, which install things and which touch
$HOME. awkinstead of grep+sed: same one-liner shape, plus section headings parsed out of
the banner comments that were already there.
claude-settings-testmoves up intoQA, where
qaalready called it from — under printed headings it was landing in"Apps and packages". Verified
make help: every target on main today lands underthe right heading, including the ones added since the branch was written.
The convention as a rule, not an
AGENTS.mdsection. Same restructure as#75: this is about the next Makefile in any project, not about working in this
repo, so it goes to
shared/.claude/rules/makefiles.mdwith a row in the index.This repo's
Makefilestays the worked example rather than a second copy of theprose.
Scoped with
paths:, which makes it the second rule to earn that after GitHubActions — and by the criterion
CLAUDE.mdalready states: the trigger is a filepath, and breaking it shows up in a diff. It inherits the gap that rule
documents, a Makefile written from scratch with nothing to read first, and the
index row is the pointer for it. Sentence naming Actions as the only scoped rule
updated to say two.