mirror of
https://github.com/ipfs/kubo.git
synced 2026-02-24 11:57:44 +08:00
better protobuf Makefile with wildcard.
This commit is contained in:
parent
9849794b07
commit
b0d0b5fc20
11
routing/dht/Makefile
Normal file
11
routing/dht/Makefile
Normal file
@ -0,0 +1,11 @@
|
||||
|
||||
PB = $(wildcard *.proto)
|
||||
GO = $(PB:.proto=.pb.go)
|
||||
|
||||
all: $(GO)
|
||||
|
||||
%.pb.go: %.proto
|
||||
protoc --gogo_out=. --proto_path=../../../../:/usr/local/opt/protobuf/include:. $<
|
||||
|
||||
clean:
|
||||
rm *.pb.go
|
||||
Loading…
Reference in New Issue
Block a user