]> git.proxmox.com Git - mirror_frr.git/commitdiff
build: fix gRPC build dependencies
authorDavid Lamparter <equinox@opensourcerouting.org>
Mon, 24 Oct 2022 14:49:10 +0000 (15:49 +0100)
committerDavid Lamparter <equinox@opensourcerouting.org>
Wed, 26 Oct 2022 16:12:34 +0000 (17:12 +0100)
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>
grpc/subdir.am

index cbebd72323d5e979a7ff8009f8fd42b191f59988..06b37f91d611ec773fdc48f595dc75d92879b6bd 100644 (file)
@@ -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: