]> git.ipfire.org Git - thirdparty/collectd.git/commitdiff
Avoid $< (implied source) in non-inference rules 3376/head
authorEdgar Fuß <ef@math.uni-bonn.de>
Tue, 29 Oct 2019 18:01:33 +0000 (19:01 +0100)
committerDagobert Michelsen <dam@opencsw.org>
Tue, 18 Feb 2020 16:05:42 +0000 (17:05 +0100)
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

index 258603f91fe1c9d3480fe50796fb9703d44dc261..978915aed5aeae28d18a4e2b4f63f4abeaef5575 100644 (file)
@@ -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