teach proto_c to look in the source directory for out of tree builds

(cherry picked from commit c0d4ff5796)
This commit is contained in:
Mark Andrews
2019-02-12 15:27:57 +11:00
parent fac4fe3d40
commit 28e054c36c

View File

@@ -219,7 +219,7 @@ ${OBJS}: include
dnstap.@O@: dnstap.c dnstap.pb-c.c
dnstap.pb-c.c dnstap.pb-c.h include/dns/dnstap.pb-c.h: dnstap.proto
$(PROTOC_C) --c_out=. dnstap.proto
$(PROTOC_C) --c_out=. --proto_path ${srcdir} dnstap.proto
cp -f dnstap.pb-c.h include/dns
dnstap.pb-c.@O@: dnstap.pb-c.c