go-libp2p-core/peer/pb/Makefile

12 lines
181 B
Makefile
Raw Normal View History

PB = $(wildcard *.proto)
GO = $(PB:.proto=.pb.go)
all: $(GO)
%.pb.go: %.proto
2020-01-15 23:16:35 +08:00
protoc --proto_path=$(PWD):$(PWD)/../.. --gogofaster_out=. $<
clean:
rm -f *.pb.go
rm -f *.go