Skip to content

Commit

Permalink
Updating Makefile to give instructions to download protoc
Browse files Browse the repository at this point in the history
  • Loading branch information
ineiti committed Jun 26, 2023
1 parent 42c3b44 commit c001d3c
Show file tree
Hide file tree
Showing 15 changed files with 10,336 additions and 14,288 deletions.
11 changes: 8 additions & 3 deletions external/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,14 @@ do-js: check_protoc


check_protoc:
@which protoc || (echo "Install protoc version 3.17.3. On Mac, run \"brew install protobuf@3.17.3\"" && exit 1)
@pv=`protoc --version`; \
which protoc || $(MAKE) protoc_instructions
pv=`protoc --version`; \
if [ "$$pv" != "libprotoc 3.17.3" ]; then \
echo "Protoc version $$pv is not supported."; \
exit 1; \
$(MAKE) protoc_instructions; \
fi

protoc_instructions:
echo "Please download version 3.17.3 from here:"
echo "https://github.com/protocolbuffers/protobuf/releases/tag/v3.17.3"
exit 1
Loading

0 comments on commit c001d3c

Please sign in to comment.