Is there a way to write “standard” comments in a Makefile to later feed them to a Doxygen-like program so as to output a nice (HTML or man for instance) documentation ? I’d like to have a clear overview of my main targets somewhere but nothing too fancy.
Share
One nice touch is to provide a phony
helptarget that prints a summary of targets and options. From the Linux kernelMakefile:It might be a bit of work to maintain the documentation this way, but I find it nicely separates what is intended for “users” versus what is intended for people maintaining the
Makefileitself (inline comments).