make-files / makefiles

A library of opinionated Makefiles for popular programming languages.
https://makefiles.dev
MIT License
4 stars 5 forks source link

Pack all protoc arguments into files. #80

Closed danilvpetrov closed 2 years ago

danilvpetrov commented 2 years ago

This PR changes the way protoc compiler arguments are supplied in %.pb.go and %_grpc.pb.go targets within pkg/protobuf/v2/Makefile file.

The new approach is to print out all compiler arguments to artifacts/protobuf/args/common and artifacts/protobuf/args/go files and supply them when running a compiler. This way all compiler arguments are populated in dedicated files and can be re-used in other targets or scripts.