Self-documented Makefile

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!

Continue reading »