-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmakefile
More file actions
33 lines (28 loc) · 840 Bytes
/
makefile
File metadata and controls
33 lines (28 loc) · 840 Bytes
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
#make test
OUTPUT_ROOT := output
MKDIR_P = mkdir -p
RM = rm -rf
CP = cp -r
BLOOMFLITER = bloomfilter
ROUTER = router
PROXY = proxy
bf:
@echo "build bloomfilter binary ....."
${MKDIR_P} ${OUTPUT_ROOT}/${BLOOMFLITER}
cd cmd/${BLOOMFLITER};go build -o ../../${OUTPUT_ROOT}/${BLOOMFLITER}/${BLOOMFLITER} -v .
${CP} config ${OUTPUT_ROOT}/${BLOOMFLITER}
@echo "build finish"
router:
@echo "build router binary ....."
${MKDIR_P} ${OUTPUT_ROOT}/${ROUTER}
cd cmd/${ROUTER};go build -o ../../${OUTPUT_ROOT}/${ROUTER}/${ROUTER} -v .
@echo "build finish"
${CP} config ${OUTPUT_ROOT}/${ROUTER}
proxy:
@echo "build proxy binary ....."
${MKDIR_P} ${OUTPUT_ROOT}/${PROXY}
cd cmd/${PROXY};go build -o ../../${OUTPUT_ROOT}/${PROXY}/${PROXY} -v .
@echo "build proxy finish"
${CP} config ${OUTPUT_ROOT}/${PROXY}
clean:
${RM} ${OUTPUT_ROOT}