PB = $(wildcard *.proto) GO = $(PB:.proto=.pb.go) all: $(GO) %.pb.go: %.proto protoc --go_out=. --proto_path=../../../../../../:/usr/local/opt/protobuf/include:. $< clean: rm *.pb.go