mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2025-01-03 17:44:29 +00:00
a8338e4dd2
Co-authored-by: giuliorebuffo <giuliorebuffo@system76-pc.localdomain>
11 lines
578 B
Makefile
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
|