Makefile 185 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11

PB = $(wildcard *.proto)
GO = $(PB:.proto=.pb.go)

all: $(GO)

%.pb.go: %.proto
	protoc --gogo_out=. --proto_path=../../../../:/usr/local/opt/protobuf/include:. $<

clean:
	rm *.pb.go