mirror of
https://source.quilibrium.com/quilibrium/ceremonyclient.git
synced 2024-12-27 00:55:17 +00:00
17 lines
395 B
Makefile
17 lines
395 B
Makefile
PB = $(wildcard *.proto)
|
|
GO = $(PB:.proto=.pb.go)
|
|
PWD = $(pwd)
|
|
|
|
all: $(GO)
|
|
|
|
%.pb.go: %.proto
|
|
protoc -I=. --go-grpc_out=paths=source_relative:. \
|
|
--grpc-gateway_out . \
|
|
--grpc-gateway_opt logtostderr=true \
|
|
--grpc-gateway_opt paths=source_relative \
|
|
--grpc-gateway_opt generate_unbound_methods=true \
|
|
--go_out=paths=source_relative:. *.proto
|
|
|
|
clean:
|
|
rm -f *.pb.go
|
|
rm -f *.go
|