]> git.proxmox.com Git - mirror_frr.git/commitdiff
build: clean up mgmtd lib protobuf make syntax
authorMark Stapp <mjs@labn.net>
Mon, 27 Mar 2023 20:44:27 +0000 (16:44 -0400)
committerMark Stapp <mjs@labn.net>
Mon, 27 Mar 2023 20:44:27 +0000 (16:44 -0400)
Fix the makefile rules for the new mgmtd lib module that's
generated from a protobuf spec file.

Signed-off-by: Mark Stapp <mjs@labn.net>
Makefile.am

index e70e65d333ef750e3547c8016a4610c03faddaf2..f56e1b8e0bac33e04a867794db0e3457ff95c227 100644 (file)
@@ -165,14 +165,11 @@ am__v_PROTOC_C_ = $(am__v_PROTOC_C_$(AM_DEFAULT_VERBOSITY))
 am__v_PROTOC_C_0 = @echo "  PROTOC_C" $@;
 am__v_PROTOC_C_1 =
 
-.proto.pb-c.c:
+%.pb-c.c %.pb-c.h : %.proto
        $(AM_V_PROTOC_C)$(PROTOC_C) -I$(top_srcdir) --c_out=$(top_builddir) $^
        $(AM_V_GEN)$(SED) -i -e '1i\
        #include "config.h"' $@
 
-.pb-c.c.pb-c.h:
-       @echo "  GEN     " $@
-
 include doc/subdir.am
 include doc/user/subdir.am
 include doc/manpages/subdir.am