github.com/giantswarm/apiextensions/v6@v6.6.0/Makefile (about)

     1  # DO NOT EDIT. Generated with:
     2  #
     3  #    devctl@5.8.0
     4  #
     5  
     6  include Makefile.*.mk
     7  
     8  ##@ General
     9  
    10  # The help target prints out all targets with their descriptions organized
    11  # beneath their categories. The categories are represented by '##@' and the
    12  # target descriptions by '##'. The awk commands is responsible for reading the
    13  # entire set of makefiles included in this invocation, looking for lines of the
    14  # file as xyz: ## something, and then pretty-format the target and help. Then,
    15  # if there's a line with ##@ something, that gets pretty-printed as a category.
    16  # More info on the usage of ANSI control characters for terminal formatting:
    17  # https://en.wikipedia.org/wiki/ANSI_escape_code#SGR_parameters
    18  # More info on the awk command:
    19  # http://linuxcommand.org/lc3_adv_awk.php
    20  
    21  .PHONY: help
    22  help: ## Display this help.
    23  	@awk 'BEGIN {FS = ":.*##"; printf "\nUsage:\n  make \033[36m<target>\033[0m\n"} /^[a-zA-Z_0-9-]+:.*?##/ { printf "  \033[36m%-20s\033[0m %s\n", $$1, $$2 } /^##@/ { printf "\n\033[1m%s\033[0m\n", substr($$0, 5) } ' $(MAKEFILE_LIST)