summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile8
1 files changed, 7 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 4c97719..db4d2a7 100644
--- a/Makefile
+++ b/Makefile
@@ -5,7 +5,7 @@
# go install
-all: package.pb.go
+all: package.pb.go machine.pb.go
make -C example
vet: lint
@@ -36,3 +36,9 @@ package.pb.go: package.proto
cd ~/go/src && protoc --go_out=. --proto_path=go.wit.com/lib/protobuf/zoopb \
--go_opt=Mpackage.proto=go.wit.com/lib/protobuf/zoopb \
package.proto
+
+machine.pb.go: machine.proto
+ cd ~/go/src && protoc --go_out=. --proto_path=go.wit.com/lib/protobuf/zoopb \
+ --go_opt=Mpackage.proto=go.wit.com/lib/protobuf/zoopb \
+ --go_opt=Mmachine.proto=go.wit.com/lib/protobuf/zoopb \
+ machine.proto