erigon-pulse/cmd/lightclient/rpc/Makefile
Giulio rebuffo a8338e4dd2
Infra refactoring (#5673)
Co-authored-by: giuliorebuffo <giuliorebuffo@system76-pc.localdomain>
2022-10-09 13:41:15 +02:00

11 lines
578 B
Makefile

all:
protoc --proto_path=proto --go_out=lightrpc --go_opt=paths=source_relative proto/*.proto --go-grpc_out=lightrpc
protoc-go-inject-tag -input="lightrpc/*.pb.go"
sed -i 's/sszsize/ssz-size/g' lightrpc/*.pb.go
sed -i 's/sszmax/ssz-max/g' lightrpc/*.pb.go
go run github.com/ferranbt/fastssz/sszgen -path lightrpc/metadata.pb.go -exclude-objs {{range $key, $val := .Aliases}}{{$key}},{{end}}Ignore
go run github.com/ferranbt/fastssz/sszgen -path lightrpc/beacon_block.pb.go -exclude-objs {{range $key, $val := .Aliases}}{{$key}},{{end}}Ignore
clean:
rm lightrpc/*.pb.go