4 Star 20 Fork 7

Gitee 极速下载/Codis_old1

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
此仓库是为了提升国内下载速度的镜像仓库,每日同步一次。 原始仓库: https://github.com/CodisLabs/codis
克隆/下载
Makefile 1.68 KB
一键复制 编辑 原始数据 按行查看 历史
spinlock 提交于 2017-10-24 22:07 . Upgrade redis-server to 3.2.11 (#1381)
.DEFAULT_GOAL := build-all
export GO15VENDOREXPERIMENT=1
build-all: codis-server codis-dashboard codis-proxy codis-admin codis-ha codis-fe clean-gotest
codis-deps:
@mkdir -p bin config && bash version
@make --no-print-directory -C vendor/github.com/spinlock/jemalloc-go/
codis-dashboard: codis-deps
go build -i -o bin/codis-dashboard ./cmd/dashboard
@./bin/codis-dashboard --default-config > config/dashboard.toml
codis-proxy: codis-deps
go build -i -tags "cgo_jemalloc" -o bin/codis-proxy ./cmd/proxy
@./bin/codis-proxy --default-config > config/proxy.toml
codis-admin: codis-deps
go build -i -o bin/codis-admin ./cmd/admin
codis-ha: codis-deps
go build -i -o bin/codis-ha ./cmd/ha
codis-fe: codis-deps
go build -i -o bin/codis-fe ./cmd/fe
@rm -rf bin/assets; cp -rf cmd/fe/assets bin/
codis-server:
@mkdir -p bin
@rm -f bin/codis-server*
make -j4 -C extern/redis-3.2.11/
@cp -f extern/redis-3.2.11/src/redis-server bin/codis-server
@cp -f extern/redis-3.2.11/src/redis-benchmark bin/
@cp -f extern/redis-3.2.11/src/redis-cli bin/
@cp -f extern/redis-3.2.11/src/redis-sentinel bin/
@cp -f extern/redis-3.2.11/redis.conf config/
@sed -e "s/^sentinel/# sentinel/g" extern/redis-3.2.11/sentinel.conf > config/sentinel.conf
clean-gotest:
@rm -rf ./pkg/topom/gotest.tmp
clean: clean-gotest
@rm -rf bin
@rm -rf scripts/tmp
distclean: clean
@make --no-print-directory --quiet -C extern/redis-3.2.11 distclean
@make --no-print-directory --quiet -C vendor/github.com/spinlock/jemalloc-go/ distclean
gotest: codis-deps
go test ./cmd/... ./pkg/...
gobench: codis-deps
go test -gcflags -l -bench=. -v ./pkg/...
docker:
docker build --force-rm -t codis-image .
demo:
pushd example && make
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C/C++
1
https://gitee.com/mirrors/Codis_old1.git
git@gitee.com:mirrors/Codis_old1.git
mirrors
Codis_old1
Codis_old1
master

搜索帮助