diff options
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 16 |
1 files changed, 14 insertions, 2 deletions
@@ -1,9 +1,21 @@ -# You must use the current protoc-gen-go +# You must use the current google protoc-gen-go # -# go-clone --go-src google.golang.org/protobuf # cd ~/go/src/google.golang.org/protobuf/cmd/protoc-gen-go # go install +check-for-protoc-gen-go: + @if [ -f "/usr/bin/bin/protoc-gen-go" ]; then \ + echo "the protoc-gen-go package is old in debian sid right now"; \ + echo "for now, remove it"; \ + apt remote proto-gen-go \ + exit 1; \ + fi + @if [ ! -f "$(HOME)/go/bin/protoc-gen-go" ]; then \ + echo "you must build protoc-gen-go from google"; \ + echo go-clone google.golang.org/protobuf; \ + cd ~/go/src/google.golang.org/protobuf/cmd/protoc-gen-go/ && go install; \ + fi + make all all: droplet.pb.go hypervisor.pb.go event.pb.go experiments.pb.go make -C example |
