3 ms·
Yup. It is a nice trick that you might find more often in Makefile. I have a make target that does this consistently in all the makefiles I write: https://githu
by andreineculau 7y ago
Yup. It is a nice trick that you might find more often in Makefile.
I have a make target that does this consistently in all the makefiles I write: https://github.com/andreineculau/core.inc.mk/blob/master/target.help.inc.mk https://github.com/andreineculau/core.inc.mk/blob/master/tar...
target1: ## Do this
target2:
target3: target2 ## Do that
would be nicely formatted as the output of `make help` into
Available targets:
target1 Do this
target2 Do that
and if you want to see all targets along with their origin file, even those without help messages, type `make help-all` to render
Available targets:
target1 path/to/Makefile Do this
target2 path/to/Makefile
target3 path/to/Makefile Do that