-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathMakefile
More file actions
29 lines (23 loc) · 767 Bytes
/
Makefile
File metadata and controls
29 lines (23 loc) · 767 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
install:
brew install dep && dep ensure
dist: build
dep ensure
update: build
dep ensure -update
build:
go build ./...
test:
go test -v -race ./...
gen-cert:
# openssl req -x509 -nodes -newkey rsa:2048 -keyout 127.0.0.1.key -out 127.0.0.1.crt -days 3650
openssl req \
-x509 -nodes -newkey rsa:2048 \
-out net/grpc/test/localhost.crt \
-keyout net/grpc/test/localhost.key \
-subj "/C=CH/ST=Zurich/L=Zurich/O=Foo/OU=Bar/emailAddress=demo@example.com/CN=localhost/subjectAltName=DNS:localhost"
proto-build:
@find . -iname '*.proto' -not -path "./vendor/*" | xargs -I '{}' protoc \
--go_out=$(shell dirname '{}') \
--go_opt=paths=source_relative \
--go-grpc_out=$(shell dirname '{}') \
--go-grpc_opt=paths=source_relative '{}'