mirror of
https://github.com/FRRouting/frr.git
synced 2025-04-30 13:37:17 +02:00
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>
This commit is contained in:
parent
903ad92ca4
commit
b053254ecc
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue