ceremonyclient/go-libp2p-kad-dht/pb/Makefile

12 lines
175 B
Makefile
Raw Normal View History

2024-10-12 18:48:25 +00:00
PB = $(wildcard *.proto)
GO = $(PB:.proto=.pb.go)
all: $(GO)
%.pb.go: %.proto
protoc --proto_path=$(GOPATH)/src:. --gogofast_out=. $<
clean:
rm -f *.pb.go
rm -f *.go