forked from uswitch/kiam
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
23 lines (16 loc) · 648 Bytes
/
Makefile
File metadata and controls
23 lines (16 loc) · 648 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
.PHONY: test clean all
all: bin/agent bin/server bin/health
bin/agent: $(shell find . -name '*.go') proto/service.pb.go
go build -o bin/agent cmd/agent/*.go
bin/server: $(shell find . -name '*.go') proto/service.pb.go
go build -o bin/server cmd/server/*.go
bin/health: $(shell find . -name '*.go') proto/service.pb.go
go build -o bin/health cmd/health/*.go
proto/service.pb.go: proto/service.proto
go get -u -v github.com/golang/protobuf/protoc-gen-go
protoc -I proto/ proto/service.proto --go_out=plugins=grpc:proto
test: $(shell find . -name '*.go')
go test test/unit/*_test.go
go test test/functional/*_test.go
clean:
rm -rf bin/