Skip to content

Make Makefile self-documenting - #2793

Merged
mroderick merged 1 commit into
masterfrom
feature/self-documenting-makefile
Aug 7, 2026
Merged

Make Makefile self-documenting#2793
mroderick merged 1 commit into
masterfrom
feature/self-documenting-makefile

Conversation

@mroderick

Copy link
Copy Markdown
Collaborator

Bare make now lists every target with a one-line description instead of running the first target (backup_production).

Changes

  • Added a help target that parses ## comments into a formatted, alphabetised target list.
  • Set .DEFAULT_GOAL := help so make with no args prints the list; make help works too.
  • Added a ## description to each of the 8 existing targets.

Verify

make            # prints the target list
make help       # same

Add an (help) target that lists every target with its description, and set
.DEFAULT_GOAL to help so bare 'make' prints the list instead of running the
first target. Each target gets a one-line '##' description.
@mroderick
mroderick marked this pull request as ready for review August 7, 2026 16:15
@mroderick
mroderick merged commit d54672a into master Aug 7, 2026
10 checks passed
@mroderick
mroderick deleted the feature/self-documenting-makefile branch August 7, 2026 16:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant