@cryptotaxi247 / kubo / commits / b0d0b5fc2

better protobuf Makefile with wildcard.

Juan Batiz-Benet committed Sep 15, 2014 at 18:29 UTC b0d0b5fc20ed9f4a2d0b970be21ed26999e19cd6
1 file changed +11
routing/dht/Makefile new
+11
@@ -0,0 +1,11 @@
1 +
2 +PB = $(wildcard *.proto)
3 +GO = $(PB:.proto=.pb.go)
4 +
5 +all: $(GO)
6 +
7 +%.pb.go: %.proto
8 + protoc --gogo_out=. --proto_path=../../../../:/usr/local/opt/protobuf/include:. $<
9 +
10 +clean:
11 + rm *.pb.go