-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
58 lines (38 loc) · 924 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
46
47
48
49
50
51
52
53
54
55
56
57
all: clean build-master build-chunkserver build-client
clean: clean-master clean-chunkserver clean-client
# cleans builds and runs master and chunkserver
dev:
./scripts/run.sh
clean-master:
rm -f ./master
clean-chunkserver:
rm -f ./chunkserver
clean-client:
rm -f ./client
run-master:
go run cmd/master/*.go
run-client:
go run cmd/client/*.go
run-chunkserver:
go run cmd/chunkserver/*.go
build: build-master build-chunkserver build-client
build-master:
go build -o master cmd/master/*.go
build-chunkserver:
go build -o chunkserver cmd/chunkserver/*.go
build-client:
go build -o client cmd/client/*.go
tidy:
go mod tidy
vendor:
go mod vendor
docker-master:
docker build . -t dfs --target master
docker-chunkserver:
docker build . -t dfs --target chunkserver
docker-client:
docker build . -t dfs --target client
docker-up:
docker-compose up -d --build
docker-down:
docker-compose down -v