better protobuf Makefile with wildcard.

This commit is contained in:
Juan Batiz-Benet 2014-09-15 18:29:42 -07:00 committed by Brian Tiger Chow
parent 9849794b07
commit b0d0b5fc20

11
routing/dht/Makefile Normal file
View File

@ -0,0 +1,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