Self-documented Makefile
Fri 26 May 2023
, in Misc.
Documenting the commands in a Makefile is usually achieved by creating another make recipe (often named “help”) which prints the documentation of each target/command. We can do better than this.
Add a small ‘awk’ script in the ‘help’ recipe to create self-documented make targets!