Commit a3596601 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont
Browse files

contrib: protobuf: add variable for the protobuf compiler

parent ec9a6af6
......@@ -273,6 +273,12 @@ else
SHA512SUM = $(error SHA-512 checksumming not found!)
endif
ifeq ($(shell protoc --version >/dev/null 2>&1 || echo FAIL),)
PROTOC = protoc
else
PROTOC ?= $(error Protobuf compiler (protoc) not found!)
endif
#
# Common helpers
#
......
......@@ -23,6 +23,6 @@ endif
.protobuf: protobuf
$(RECONF)
cd $< && $(HOSTVARS) ./configure $(HOSTCONF) --with-protoc=protoc
cd $< && $(HOSTVARS) ./configure $(HOSTCONF) --with-protoc="$(PROTOC)"
cd $< && $(MAKE) && $(MAKE) install
touch $@
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment