1 Star 1 Fork 0

sunjun/beanstalkd-go

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
Makefile 619 Bytes
一键复制 编辑 原始数据 按行查看 历史
sunjun 提交于 2020-11-15 23:20 . change makefile
NAME=beanstalkd-go
VERSION=$(shell ./vers.sh)
GOHOSTOS=$(shell go env GOHOSTOS)
INSTALL_DIR=/usr/local/bin/
LOG_DIR=/usr/local/var/${NAME}/log
all:
GOOS=${GOHOSTOS} go build -ldflags "-X 'main.version=${VERSION}'" -o ${NAME} .
darwin:
GOOS=darwin go build -ldflags "-X 'main.version=${VERSION}'" -o ${NAME} .
linux:
GOOS=linux go build -ldflags "-X 'main.version=${VERSION}'" -o ${NAME} .
install:
cp -f ${NAME} ${INSTALL_DIR}
mkdir -p ${LOG_DIR}
uninstall:
rm -rf ${INSTALL_DIR}${NAME}
rm -rf ${LOG_DIR}
run:
./${NAME} -b log
test:
go test ./... -race -covermode=atomic
clean:
rm -rf ${NAME}
rm -rf log
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Go
1
https://gitee.com/sjatsh/beanstalkd-go.git
git@gitee.com:sjatsh/beanstalkd-go.git
sjatsh
beanstalkd-go
beanstalkd-go
main

搜索帮助