diff options
author | David Lamparter <equinox@opensourcerouting.org> | 2022-10-24 16:49:10 +0200 |
---|---|---|
committer | David Lamparter <equinox@opensourcerouting.org> | 2022-10-26 18:12:34 +0200 |
commit | b053254ecc059f5a810c2c388850ed4003394d4a (patch) | |
tree | a02ab66d67005891c289b40e617d7eb654f3b36c /grpc | |
parent | isisd/fabricd: use PROTO_NAME in SR code (diff) | |
download | frr-b053254ecc059f5a810c2c388850ed4003394d4a.tar.xz frr-b053254ecc059f5a810c2c388850ed4003394d4a.zip |
build: fix gRPC build dependencies
The generated header files need a dependency on the generated .c file,
otherwise build breaks when the header is used before it is generated.
Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
Diffstat (limited to 'grpc')
-rw-r--r-- | grpc/subdir.am | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/grpc/subdir.am b/grpc/subdir.am index cbebd7232..06b37f91d 100644 --- a/grpc/subdir.am +++ b/grpc/subdir.am @@ -28,6 +28,13 @@ am__v_PROTOC_1 = SUFFIXES += .pb.h .pb.cc .grpc.pb.cc +grpc/frr-northbound.grpc.pb.h: grpc/frr-northbound.grpc.pb.cc + @test -f $@ || rm -f $< || true + @test -f $@ || $(MAKE) $(AM_MAKEFLAGS) $< +grpc/frr-northbound.pb.h: grpc/frr-northbound.pb.cc + @test -f $@ || rm -f $< || true + @test -f $@ || $(MAKE) $(AM_MAKEFLAGS) $< + .proto.pb.cc: $(AM_V_PROTOC)$(PROTOC) -I$(top_srcdir) --cpp_out=$(top_builddir) $^ .proto.grpc.pb.cc: |