Allow specifying protoc binary with environment variable. (#234)

This commit is contained in:
Kamil Skalski 2017-01-09 23:25:26 +01:00 committed by Jun Mukai
parent a23b2ef4d2
commit f6ca91a887
1 changed files with 4 additions and 1 deletions

View File

@ -18,6 +18,9 @@ GPRCPLUGIN ?= /usr/local/bin/grpc_$(LANGUAGE)_plugin
# Choose the proto include directory.
PROTOINCLUDE ?= /usr/local/include
# Choose protoc binary
PROTOC ?= protoc
# Compile the entire repository
#
# NOTE: if "protoc" command is not in the PATH, you need to modify this file.
@ -39,7 +42,7 @@ all: $(DEPS)
%.$(SUFFIX): %.proto
mkdir -p $(OUTPUT)
protoc $(FLAGS) $*.proto
$(PROTOC) $(FLAGS) $*.proto
clean:
rm $(patsubst %,$(OUTPUT)/%,$(DEPS)) 2> /dev/null