From 2b7a3329573aabc5630a37294827a4eedd23f71f Mon Sep 17 00:00:00 2001 From: Thomas Friebel Date: Fri, 8 Mar 2013 22:14:59 +0100 Subject: [PATCH] Allow overriding protoc path from the command line --- src/Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Makefile b/src/Makefile index 7996688..bb8d035 100644 --- a/src/Makefile +++ b/src/Makefile @@ -2,6 +2,7 @@ CXX ?= g++ CXXFLAGS ?= -O3 AR ?= ar +PROTOC ?= protoc all: libosmpbf.a ../include/osmpbf/fileformat.pb.h ../include/osmpbf/osmformat.pb.h @@ -12,7 +13,7 @@ libosmpbf.a: fileformat.pb.o osmformat.pb.o $(CXX) $(CXXFLAGS) -c -o $@ $< %.pb.cc ../include/osmpbf/%.pb.h: %.proto - protoc --proto_path=. --cpp_out=. $< + $(PROTOC) --proto_path=. --cpp_out=. $< cp *.pb.h ../include/osmpbf/ install: