github.com/Axway/agent-sdk@v1.1.101/samples/watchclient/Makefile (about)

     1  PROJECT_NAME := watchclient
     2  PKG_LIST := $(shell go list ./... | grep -v /vendor/)
     3  
     4  BIN=watchclient
     5  
     6  .PHONY: clean
     7  
     8  _all: clean build ## Build everything
     9  
    10  all: clean build
    11  
    12  build: ## Build the binary for linux
    13  	CGO_ENABLED=0 GOARCH=amd64 go build -o ./bin/$(BIN)
    14  
    15  clean: ## Clean out dir
    16  	rm -rf ./bin
    17  
    18  help: ## Display this help screen
    19  	@grep	-h	-E	'^[a-zA-Z_-]+:.*?## .*$$'	$(MAKEFILE_LIST) | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'
    20