From b0d0b5fc20ed9f4a2d0b970be21ed26999e19cd6 Mon Sep 17 00:00:00 2001
From: Juan Batiz-Benet <juan@benet.ai>
Date: Mon, 15 Sep 2014 18:29:42 -0700
Subject: [PATCH] better protobuf Makefile with wildcard.

---
 routing/dht/Makefile | 11 +++++++++++
 1 file changed, 11 insertions(+)
 create mode 100644 routing/dht/Makefile

diff --git a/routing/dht/Makefile b/routing/dht/Makefile
new file mode 100644
index 00000000..563234b1
--- /dev/null
+++ b/routing/dht/Makefile
@@ -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
-- 
GitLab