cubefs/Makefile
ytyuanxi 06f46d9a52 feat(deploy): add a cfs-deploy tool
Signed-off-by: ytyuanxi <1206812491@qq.com>
2023-10-27 19:42:06 +08:00

71 lines
1.5 KiB
Makefile

# Cubefs Makefile
#
threads?=0
RM := $(shell [ -x /bin/rm ] && echo "/bin/rm" || echo "/usr/bin/rm" )
GOMOD=on
default: all
phony := all
all: build
phony += build server authtool client cli libsdk fsck fdstore preload bcache blobstore deploy
build: server authtool client cli libsdk fsck fdstore preload bcache blobstore deploy
server:
@build/build.sh server $(GOMOD) --threads=$(threads)
deploy:
@build/build.sh deploy $(GOMOD) --threads=$(threads)
blobstore:
@build/build.sh blobstore $(GOMOD) --threads=$(threads)
client:
@build/build.sh client $(GOMOD) --threads=$(threads)
authtool:
@build/build.sh authtool $(GOMOD) --threads=$(threads)
cli:
@build/build.sh cli $(GOMOD) --threads=$(threads)
fsck:
@build/build.sh fsck $(GOMOD) --threads=$(threads)
libsdk:
@build/build.sh libsdk $(GOMOD) --threads=$(threads)
fdstore:
@build/build.sh fdstore $(GOMOD) --threads=$(threads)
preload:
@build/build.sh preload $(GOMOD) --threads=$(threads)
bcache:
@build/build.sh bcache $(GOMOD) --threads=$(threads)
phony += clean
clean:
@$(RM) -rf build/bin
phony += dist-clean
dist-clean:
@build/build.sh dist_clean --threads=$(threads)
phony += test
test:
@build/build.sh test $(GOMOD) --threads=$(threads)
phony += testcover
testcover:
@build/build.sh testcover $(GOMOD) --threads=$(threads)
phony += mock
mock:
rm -rf metanode/mocktest
mockgen -source=raftstore/partition.go -package=raftstoremock -destination=metanode/mocktest/raftstore/partition.go
.PHONY: $(phony)