Makefile 327 B

12345678910111213141516171819
  1. # protoc is required:
  2. # pacman -S protoc
  3. # apt install protoc
  4. .PHONY: all go python clean
  5. all: go python
  6. # protoc-gen-go is required:
  7. # go install github.com/golang/protobuf/protoc-gen-go@latest
  8. go:
  9. protoc --go_out=paths=source_relative:. *.proto
  10. python:
  11. protoc --python_out=. *.proto
  12. clean:
  13. -@rm *_pb2.py
  14. -@rm *.pb.go