From de6653bf1f47258cf1233d1c0338cef5f35c1e7c Mon Sep 17 00:00:00 2001 From: =?utf8?q?Edgar=20Fu=C3=9F?= Date: Tue, 29 Oct 2019 19:01:33 +0100 Subject: [PATCH] Avoid $< (implied source) in non-inference rules Spell out input files in the collectd.grpc.pb.cc, collectd.pb.cc and types.pb.cc targets instead of using $<, which may only be defined for inference rules in non-GNU (but POSIX-compilent) versions of make. --- Makefile.am | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/Makefile.am b/Makefile.am index 258603f91..978915aed 100644 --- a/Makefile.am +++ b/Makefile.am @@ -2221,13 +2221,16 @@ BUILT_SOURCES += collectd.grpc.pb.cc collectd.pb.cc types.pb.cc collectd.grpc.pb.cc: $(srcdir)/proto/collectd.proto $(srcdir)/proto/types.proto $(V_PROTOC)$(PROTOC) -I$(srcdir)/proto \ - --grpc_out=$(builddir) --plugin=protoc-gen-grpc=$(GRPC_CPP_PLUGIN) $< + --grpc_out=$(builddir) --plugin=protoc-gen-grpc=$(GRPC_CPP_PLUGIN) \ + $(srcdir)/proto/collectd.proto $(srcdir)/proto/types.proto collectd.pb.cc: $(srcdir)/proto/collectd.proto $(srcdir)/proto/types.proto - $(V_PROTOC)$(PROTOC) -I$(srcdir)/proto --cpp_out=$(builddir) $< + $(V_PROTOC)$(PROTOC) -I$(srcdir)/proto --cpp_out=$(builddir) \ + $(srcdir)/proto/collectd.proto $(srcdir)/proto/types.proto types.pb.cc: $(srcdir)/proto/types.proto - $(V_PROTOC)$(PROTOC) -I$(srcdir)/proto --cpp_out=$(builddir) $< + $(V_PROTOC)$(PROTOC) -I$(srcdir)/proto --cpp_out=$(builddir) \ + $(srcdir)/proto/types.proto endif endif -- 2.47.2