12 Star 27 Fork 10

voidint / gbb

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
Makefile 683 Bytes
一键复制 编辑 原始数据 按行查看 历史
voidint 提交于 2020-09-19 07:19 . Add Makefile
GOPATH=
GO111MODULE=on
GOPROXY=https://goproxy.cn,direct
GO = CGO_ENABLED=0 go
BUILD_DATE := $(shell date '+%Y-%m-%d %H:%M:%S')
GIT_BRANCH := $(shell git symbolic-ref --short -q HEAD)
GIT_COMMIT_HASH := $(shell git rev-parse --verify HEAD)
GO_FLAGS := -v -ldflags="-X 'github.com/voidint/gbb/build.Date=$(BUILD_DATE)' -X 'github.com/voidint/gbb/build.Commit=$(GIT_COMMIT_HASH)' -X 'github.com/voidint/gbb/build.Branch=$(GIT_BRANCH)'"
all: install test
build:
@echo "GO111MODULE=$(GO111MODULE)"
@echo "GOPROXY=$(GOPROXY)"
$(GO) build $(GO_FLAGS)
install: build
$(GO) install $(GO_FLAGS)
test:
$(GO) test -v ./...
clean:
$(GO) clean -x
.PHONY: all build install test clean
Go
1
https://gitee.com/voidint/gbb.git
git@gitee.com:voidint/gbb.git
voidint
gbb
gbb
master

搜索帮助