go-libp2p-daemon/pb/Makefile

7 lines
147 B
Makefile

pbgos := $(patsubst %.proto,%.pb.go,$(wildcard *.proto))
all: $(pbgos)
%.pb.go: %.proto
protoc --gogofast_out=. --proto_path=$(GOPATH)/src:. $<