-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
31 lines (28 loc) · 954 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
.PHONY: genproto
genproto:
protoc -I=./grpc/proto \
--go_out=./grpc/proto \
--go_opt=paths=source_relative \
--go-grpc_out=./grpc/proto \
--go-grpc_opt=paths=source_relative \
--go-grpc_opt=require_unimplemented_servers=false \
./grpc/proto/rootfs_server.proto
.PHONY: lint
lint:
golint ./...
.PHONY: prototools
prototools:
go get -u github.com/golang/protobuf/proto \
github.com/golang/protobuf/protoc-gen-go \
google.golang.org/grpc \
google.golang.org/protobuf/cmd/protoc-gen-go \
google.golang.org/grpc/cmd/protoc-gen-go-grpc
go install google.golang.org/protobuf/cmd/protoc-gen-go \
google.golang.org/grpc/cmd/protoc-gen-go-grpc
go mod tidy
.PHONY: release
release:
curl -sL https://raw.githubusercontent.com/radekg/git-release/master/git-release --output /tmp/git-release
chmod +x /tmp/git-release
/tmp/git-release --repository-path=${GOPATH}/src/github.com/combust-labs/firebuild-shared
rm -rf /tmp/git-release