PB = $(wildcard *.proto) GO = $(PB:.proto=.pb.go) all: $(GO) %.pb.go: %.proto
protoc --gogo_out=. $<
clean: rm *.pb.go