16 Star 99 Fork 24

Gitee 极速下载/curve

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
此仓库是为了提升国内下载速度的镜像仓库,每日同步一次。 原始仓库: https://github.com/opencurve/curve
克隆/下载
Makefile 2.76 KB
一键复制 编辑 原始数据 按行查看 历史
# Copyright (C) 2021 Jingli Chen (Wine93), NetEase Inc.
.PHONY: list build dep ci-list ci-build ci-dep install image playground check test docker format
stor?=""
prefix?= "$(PWD)/projects"
release?= 0
dep?= 0
only?= "*"
tag?= "curvebs:unknown"
case?= "*"
os?= "debian11"
ci?=0
define help_msg
## build curvebs
make build stor=bs dep=1
make dep stor=bs && make build stor=bs
## build curvefs
make build stor=fs dep=1
make dep stor=fs && make build stor=fs
## list
Usage:
make list stor=bs/fs
Examples:
make list stor=bs
## build
Usage:
make build stor=bs/fs only=TARGET1,...,TARGETx dep=0/1 release=0/1 os=OS
Examples:
make build stor=bs only=//src/chunkserver:chunkserver
make build stor=bs only=src/*,test/* dep=0
make build stor=fs only=test/* os=debian11
make build stor=fs release=1
Note:
Extra build options can be specified using BUILD_OPTS environment variable, which will be passed to bazel build command.
## dep
## configure dependency(before build)
Usage:
make dep stor=bs/fs
Examples:
make dep stor=bs
## ci-list/build/dep
## use the same way above, but in the container
## install
Usage:
make install stor=bs/fs prefix=PREFIX only=TARGET
Examples:
make install stor=bs prefix=/usr/local/curvebs only=*
make install stor=bs prefix=/usr/local/curvebs only=chunkserver
make install stor=fs prefix=/usr/local/curvefs only=etcd
## image
Usage:
make image stor=bs/fs tag=TAG os=OS
Examples:
make image stor=bs tag=opencurvedocker/curvebs:v1.2 os=debian11
## package
Usage:
make <tar|deb> release=0/1 dep=0/1 os=OS
Examples:
make deb
make tar release=1 dep=1 os=debian11
## playground
## create/run a container, changes outside will be mapped into the container
Usage/Example:
make playground
endef
export help_msg
help:
@echo "$$help_msg"
list:
@bash util/build.sh --stor=$(stor) --list
build:
@bash util/build.sh --stor=$(stor) --only=$(only) --dep=$(dep) --release=$(release) --ci=$(ci) --os=$(os)
dep:
@bash util/build.sh --stor=$(stor) --only="" --dep=1
ci-list:
@bash util/build_in_image.sh --stor=$(stor) --list
ci-build:
@bash util/build_in_image.sh --stor=$(stor) --only=$(only) --dep=$(dep) --release=$(release) --ci=$(ci) --os=$(os)
ci-dep:
@bash util/build_in_image.sh --stor=$(stor) --only="" --dep=1
install:
@bash util/install.sh --stor=$(stor) --prefix=$(prefix) --only=$(only)
image:
@bash util/image.sh $(stor) $(tag) $(os)
tar deb:
@RELEASE=$(release) DEP=$(dep) OS=$(os) bash util/package.sh $@
playground:
@bash util/playground.sh --version=$(version)
check:
@bash util/check.sh $(stor)
test:
@bash util/test.sh $(stor) $(only)
docker:
@bash util/docker.sh --os=$(os) --ci=$(ci)
init-hadoop:
@bash util/init-hadoop.sh
sdk:
@bash util/sdk.sh
clean:
@bash util/clean.sh
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C/C++
1
https://gitee.com/mirrors/curve.git
[email protected]:mirrors/curve.git
mirrors
curve
curve
master

搜索帮助