15 Star 69 Fork 15

He3DB / He3Proxy

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
Makefile 497 Bytes
一键复制 编辑 原始数据 按行查看 历史
裴庭伟 提交于 2022-08-31 15:15 . init commit based 0.6.0
export GO111MODULE=on
COMMIT_HASH=$(shell git rev-parse --short HEAD || echo "GitNotFound")
BUILD_DATE=$(shell date '+%Y-%m-%d %H:%M:%S')
all: build
build: he3proxy
goyacc:
go get -u golang.org/x/tools/cmd/goyacc
${GOPATH}/bin/goyacc -o ./sqlparser/sql.go ./sqlparser/sql.y
gofmt -w ./sqlparser/sql.go
he3proxy:
go build -ldflags "-X \"main.BuildVersion=${COMMIT_HASH}\" -X \"main.BuildDate=$(BUILD_DATE)\"" -o ./bin/he3proxy ./cmd/he3proxy
clean:
@rm -rf bin
test:
go test ./go/... -race
1
https://gitee.com/he3db/he3proxy.git
git@gitee.com:he3db/he3proxy.git
he3db
he3proxy
He3Proxy
master

搜索帮助