PKG := "gitlab.com/go-course-project/go17/vblog" MOD_DIR := $(shell go env GOPATH)/pkg/mod PKG_LIST := $(shell go list ${PKG}/... | grep -v /vendor/ | grep -v redis) GO_FILES := $(shell find . -name '*.go' | grep -v /vendor/ | grep -v _test.go) .PHONY: all dep lint vet test test-coverage build clean all: build dep: ## Get the dependencies @go mod tidy lint: ## Lint Golang files @golint -set_exit_status ${PKG_LIST} vet: ## Run go vet @go vet ${PKG_LIST} run: ## Run Server @go run main.go start help: ## Display this help screen @grep -h -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'