In certainly one of my earlier blog. I wrote how you would make your life simpler if you begin utilizing Makefile. However if you begin utilizing Makefile in lots of initiatives. The targets that you just use could range from mission to mission.
On this weblog submit I’ll deal with a trick how you would write a assist
goal. Lets think about that we have now a mission that let you construct
, begin
and cease
a docker container. These names are fairly simple. However with out wanting within the Makefile you by no means know for positive.
By calling the assist
goal you would record all out there targets:
make assist
If you take a look on the Makefile used for this weblog submit. It appears to be like like this:
.DEFAULT_GOAL:=assist
.PHONY: assist
assist: ## Show this assist
$(information Instance Makefile for my weblog submit)
awk 'BEGIN {FS = ":.*##"; printf "nUsage:n make 33[36m<target>