Update Makefile to have a proper format
-default: go/networkservice.pb.go
+GOPATH?=~/go
+GOBIN?=${GOPATH}/bin
-go/networkservice.pb.go: networkservice/networkservice.proto
- protoc -I networkservice networkservice/networkservice.proto --go_out=plugins=grpc:go
+PROTOS = $(wildcard networkservice/*.proto)
+PBS = $(PROTOS:%.proto=%.pb)
+
+all: protos
+protos: ${PBS}
+
+%.pb: %.proto
+ PATH=$(PATH):$(GOBIN) protoc -I networkservice $*.proto --go_out=plugins=grpc:go
