I like similar tricks. Another trick I like to use is being able to do a `make showconfig` and have it print the list of variables & their values that I care about.
You can see that here. You can also see my Make+BASH solution for documenting targets.
https://github.com/lpsantil/oop0/blob/master/Makefile#L87-L1...