forked from dedis/apir-code
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
35 lines (24 loc) · 723 Bytes
/
Makefile
File metadata and controls
35 lines (24 loc) · 723 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: install lint keys test
PROTO_PB=lib/proto/vpir.pb.go
install:
go get -u -t ./...
lint:
golint ./...
run_server: $(PROTO_PB)
cd cmd/grpc/server && go build
go run cmd/grpc/server/main.go -id=$(id) -files=$(files) -scheme=$(scheme)
build_client: $(PROTO_PB)
cd cmd/grpc/client && go build -o client .
run_client: build_client
cmd/grpc/client/client -id=$(id) -scheme=$(scheme)
run_demo: build_client
cmd/grpc/client/client -demo -scheme=$(scheme)
test: $(PROTO_PB)
go test
keys:
cd data && go build -o parser
cd data && ./parser
$(PROTO_PB): lib/proto/vpir.proto
protoc --go_out=. --go_opt=paths=source_relative \
--go-grpc_out=. --go-grpc_opt=paths=source_relative \
lib/proto/vpir.proto