forked from cubefs/cubefs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
65 lines (46 loc) · 1.12 KB
/
Makefile
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
# Cubefs Makefile
#
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
build: server authtool client cli libsdk fsck fdstore preload bcache blobstore
server:
@build/build.sh server $(GOMOD)
blobstore:
@build/build.sh blobstore $(GOMOD)
client:
@build/build.sh client $(GOMOD)
authtool:
@build/build.sh authtool $(GOMOD)
cli:
@build/build.sh cli $(GOMOD)
fsck:
@build/build.sh fsck $(GOMOD)
libsdk:
@build/build.sh libsdk $(GOMOD)
fdstore:
@build/build.sh fdstore $(GOMOD)
preload:
@build/build.sh preload $(GOMOD)
bcache:
@build/build.sh bcache $(GOMOD)
phony += clean
clean:
@$(RM) -rf build/bin
phony += dist-clean
dist-clean:
@build/build.sh dist_clean
phony += test
test:
@build/build.sh test $(GOMOD)
phony += testcover
testcover:
@build/build.sh testcover $(GOMOD)
phony += mock
mock:
rm -rf metanode/mocktest
mockgen -source=raftstore/partition.go -package=raftstoremock -destination=metanode/mocktest/raftstore/partition.go
.PHONY: $(phony)