go.uber.org/yarpc@v1.72.1/Makefile (about)

     1  include etc/make/base.mk
     2  ifndef SUPPRESS_DOCKER
     3  include etc/make/dockerdeps.mk
     4  include etc/make/docker.mk
     5  else
     6  include etc/make/deps.mk
     7  include etc/make/local.mk
     8  endif
     9  
    10  CI_TYPES ?= lint test examples
    11  
    12  .DEFAULT_GOAL := ci
    13  
    14  .PHONY: ci
    15  ci: __print_ci $(CI_TYPES) ## run continuous integration tasks
    16  
    17  .PHONY: help
    18  help: __print_info ## show this help message
    19  	@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | cut -f 2,3 -d : | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'
    20  
    21  .PHONY: __print_info
    22  __print_info:
    23  ifdef SUPPRESS_DOCKER
    24  	$(info Docker is not being used)
    25  else
    26  	$(info Docker is being used)
    27  ifdef DOCKER_HOST
    28  	$(info DOCKER_HOST=$(DOCKER_HOST))
    29  endif
    30  	$(info DOCKER_GO_VERSION=$(DOCKER_GO_VERSION))
    31  	$(info DOCKER_BUILD_FLAGS=$(DOCKER_BUILD_FLAGS))
    32  	$(info DOCKER_RUN_FLAGS=$(DOCKER_RUN_FLAGS))
    33  endif
    34  	@echo
    35  
    36  .PHONY: __print_ci
    37  __print_ci: __print_info
    38  	$(info CI_TYPES=$(CI_TYPES))
    39  	@echo