mirror of
https://github.com/libp2p/go-libp2p-core.git
synced 2024-12-28 23:50:07 +08:00
12 lines
181 B
Makefile
12 lines
181 B
Makefile
|
PB = $(wildcard *.proto)
|
||
|
GO = $(PB:.proto=.pb.go)
|
||
|
|
||
|
all: $(GO)
|
||
|
|
||
|
%.pb.go: %.proto
|
||
|
protoc --proto_path=$(PWD):$(PWD)/../.. --gogofaster_out=. $<
|
||
|
|
||
|
clean:
|
||
|
rm -f *.pb.go
|
||
|
rm -f *.go
|