VOL-1460 Generate stubs from proper version of protoc-gen-go
The go get for protobuf installs the :master verson of protoc-gen-go.
After the checkout of 1.3.1 run make install (go install) again so
the correct protoc-gen-go binary is generated.
Also fix typo in makefile that prevented install-protoc
Change-Id: I1cf5da45ef6cee998d8b4658a941518d3be94369
diff --git a/Makefile b/Makefile
index 1825bae..f83e7e2 100644
--- a/Makefile
+++ b/Makefile
@@ -86,7 +86,7 @@
@echo "To install the protocol buffer toolchain, you can run:"
@echo " make install-protoc"
@echo "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"
- false
+ exit 1
endif
./build_go_protos.sh protos
@@ -97,7 +97,7 @@
>---@echo "To install this version, you can run:"
@echo " make install-protoc"
@echo "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"
- false
+ exit 1
endif
test/test-go-proto-consistency.sh
@@ -106,7 +106,7 @@
install-protoc:
@echo "Downloading and installing protocol buffer support."
- @echo "Installation will require sodo priviledges"
+ @echo "Installation will require sudo priviledges"
@echo "This will take a few minutes."
mkdir -p $(PROTOC_BUILD_TMP_DIR)
@echo "We ask for sudo credentials now so we can install at the end"; \
@@ -117,5 +117,5 @@
cd $(PROTOC_DIR); \
./configure --prefix=$(PROTOC_PREFIX); \
make; \
- sudo make install; \
+ sudo make install; \
sudo ldconfig