-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
45 lines (27 loc) · 816 Bytes
/
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
.PHONY: setup dev-setup prod-setup build-client build-server test-client test-server clean
# Build all
build: clean build-server build-client
# Clean all
clean: clean-server clean-client clean-lib
# Clean
clean-server:
rm -rf ./server/tmp ./server/rediss-server ./server/rediss-server.exe ./server/rediss-server.log
clean-client:
rm -rf ./client/tmp ./client/rediss-cli ./client/rediss-cli.exe ./client/rediss-cli.log
clean-lib:
rm -rf ./lib/tmp ./lib/rediss-lib ./lib/rediss-lib.exe ./lib/rediss-lib.log
# Build
build-server:
cd ./server && \
go build -o ./rediss-server *.go
build-client:
cd ./client && \
go build -o ./rediss-cli *.go
# Dev
FLAGS :=
dev-server: setup-server-dev
cd ./server && \
go run *.go $(FLAGS)
dev-client: setup-client-dev
cd ./client && \
go run *.go $(FLAGS)