From: Edgar Fuß Date: Tue, 29 Oct 2019 18:01:33 +0000 (+0100) Subject: Avoid $< (implied source) in non-inference rules X-Git-Tag: collectd-5.11.0~45^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=de6653bf1f47258cf1233d1c0338cef5f35c1e7c;p=thirdparty%2Fcollectd.git 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. --- 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