-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
22 lines (18 loc) · 695 Bytes
/
Makefile
File metadata and controls
22 lines (18 loc) · 695 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
.PHONY: proto build clean
proto:
protoc \
--go_out=. --go_opt=paths=source_relative \
--go-grpc_out=. --go-grpc_opt=paths=source_relative \
proto/devicesource/devicesource.proto
protoc \
--go_out=. --go_opt=paths=source_relative \
--go-grpc_out=. --go-grpc_opt=paths=source_relative \
proto/orchestrator/orchestrator.proto
VERSION ?= dev
build: proto
go build -ldflags="-X github.com/compscidr/sair/internal/version.Version=$(VERSION)" ./cmd/sair-device-source
go build -ldflags="-X github.com/compscidr/sair/internal/version.Version=$(VERSION)" ./cmd/sair-proxy
clean:
rm -f sair-device-source sair-proxy
rm -f proto/devicesource/*.pb.go
rm -f proto/orchestrator/*.pb.go