build: add make help menu listing all targets

GNU make reserves 'make --help' for its own options, so a project cannot
override that flag; the idiomatic equivalent is 'make help'. Add a
self-maintaining help target that parses the Makefile (via
scripts/make_help.py) and lists every target with a one-line description,
so it stays in sync when targets are added/removed. Also add the missing
external-fix / external-fix-apply rows to the README make-command table.

Verified: 'make help' lists all 16 targets (exit 0); default build unchanged.
This commit is contained in:
noether committed 2026-11-01 22:29:39 -07:00
1 parent 9ae82dcd57
commit 6149a156cd
3 files changed
+75 -5

No files matched your search

+4 -1
View File
@@ -284,8 +284,11 @@ Run from the project root. `public/`, `linkcheck/`, `resources/_gen/`, and
| `make link-check` | **Offline** scan of *internal* links in `content/` → `linkcheck/internal.json`. Fast, no network. |
| `make link-fix` | Comment out confirmed dead *internal* links, then rebuild content + index. |
| `make external-check` | **Network** scan of all *external* links in `content/` → console report + `linkcheck/external_dead.txt`. Report-only; always exits 0. |
| `make clean` | Remove `public/` and `linkcheck/`. |
| `make external-fix` | Preview which external links are truly dead (DNS failed / host unreachable). Report-only; changes nothing. Run `make external-check` first. |
| `make external-fix-apply` | Comment out the truly-dead external links, then rebuild content + index. 404s/SSL/5xx/redirects/refused go to `linkcheck/manual_review_external.txt` (manual review). |
| `make clean` | Remove `public/` and `linkcheck/` (does NOT remove `.tools/`). |
| `make all` | `build` + `index` (the default target). |
| `make help` | List every make target with a one-line description. (GNU make reserves `make --help` for its own options, so this project uses `make help`.) |
Notes on the targets: