1 Star 1 Fork 52

Albert.cao / zpan

forked from Ambor / zpan 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
Makefile 877 Bytes
一键复制 编辑 原始数据 按行查看 历史
Ambor 提交于 2020-10-06 21:07 . feat: implement the issue #15 #23 #38
.PHONY: all dep lint vet test test-coverage build clean
# custom define
PROJECT := zpan
MAINFILE := main.go
all: build
mod: ## Get the dependencies
@go mod download
lint: ## Lint Golang files
@golangci-lint --version
@golangci-lint run -D errcheck
test: ## Run tests with coverage
go test -coverprofile .coverprofile ./...
go tool cover --func=.coverprofile
coverage-html: ## show coverage by the html
go tool cover -html=.coverprofile
generate: ## generate the static assets
go generate ./...
build: mod ## Build the binary file
@go build -v -o build/bin/$(PROJECT) $(MAINFILE)
install:
# 复制二进制文件
# 复制默认配置文件
clean: ## Remove previous build
@rm -rf ./build
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}'
Go
1
https://gitee.com/Albert.cao/zpan.git
git@gitee.com:Albert.cao/zpan.git
Albert.cao
zpan
zpan
master

搜索帮助