A reusable Makefile snippet that dynamically generates an interactive menu of all targets. If `fzf` is installed, it uses fuzzy search for selection; otherwise it falls back to a numbered list. The snippet uses `awk` to extract target names, excludes special targets like `menu` and `all`, and invokes the selected target via `$(MAKE)`. Example targets for lint, test, and build are included.

2m read timeFrom smcleod.net
Post cover image

Sort: