# protoc is required: # pacman -S protoc # apt install protoc .PHONY: all go python clean help all: go python # protoc-gen-go is required: # go install github.com/golang/protobuf/protoc-gen-go@latest go: protoc --go_out=paths=source_relative:. *.proto python: protoc --python_out=. *.proto clean: -@rm *_pb2.py -@rm *.pb.go help: @echo Generate basic structs for all kinds of languages. @echo @echo Usage: @echo @echo make [all] : generates for all languages supported. @echo make "< go | python | > : generates for specific language." @echo make clean : remove all generated files. @echo make help : show this message.