forked from cubefs/cubefs
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
88 lines (63 loc) · 1.95 KB
/
Makefile
File metadata and controls
88 lines (63 loc) · 1.95 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
# 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 libsdkpre libsdk fsck fdstore bcache blobstore deploy
build: server authtool client cli libsdk fsck fdstore 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)
blobstoredialtest:
@build/build.sh blobstoredialtest $(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)
libsdkpre:
@build/build.sh libsdkpre $(GOMOD) --threads=$(threads)
libsdk:
@build/build.sh libsdk $(GOMOD) --threads=$(threads)
fdstore:
@build/build.sh fdstore $(GOMOD) --threads=$(threads)
bcache:
@build/build.sh bcache $(GOMOD) --threads=$(threads)
rctest:
@build/build.sh rctest $(GOMOD) --threads=$(threads)
rcconfig:
@build/build.sh rcconfig $(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 testcovercubefs testcoverblobstore
testcover:
@build/build.sh testcover $(GOMOD) --threads=$(threads)
testcovercubefs:
@build/build.sh testcovercubefs $(GOMOD) --threads=$(threads)
testcoverblobstore:
@build/build.sh testcoverblobstore $(GOMOD) --threads=$(threads)
phony += mock
mock:
rm -rf metanode/mocktest
mockgen -source=raftstore/partition.go -package=raftstoremock -destination=metanode/mocktest/raftstore/partition.go
phony += docker
docker:
@docker/run_docker.sh --build
@docker/run_docker.sh --clean
.PHONY: $(phony)