-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
34 lines (26 loc) · 762 Bytes
/
Makefile
File metadata and controls
34 lines (26 loc) · 762 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
34
.PHONY: all proto build-master run-master build-agent run-agent frontend clean
all: proto build-master build-agent
proto:
@echo ">> Generating gRPC code"
protoc \
--go_out=. --go_opt=paths=source_relative \
--go-grpc_out=. --go-grpc_opt=paths=source_relative \
proto/cloudsync.proto
build-master:
@echo ">> Building master (checking compile)..."
go build ./master/cmd/server
run-master:
@echo ">> Running master server..."
go run ./master/cmd/server
build-agent:
@echo ">> Building agent (checking compile)..."
go build ./agent/cmd/agent
run-agent:
@echo ">> Running agent..."
go run ./agent/cmd/agent $(ARGS)
frontend:
@echo ">> Running frontend..."
@$(MAKE) -C frontend
clean:
@echo ">> Cleaning build artifacts..."
@go clean ./...