mirror of
https://github.com/FRRouting/frr.git
synced 2025-05-01 05:57:15 +02:00
build: fix/improve clippy dependencies
Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
This commit is contained in:
parent
53d93be147
commit
f1b32b2e5e
|
@ -8,9 +8,11 @@ am__v_CLIPPY_ = $(am__v_CLIPPY_$(AM_DEFAULT_VERBOSITY))
|
||||||
am__v_CLIPPY_0 = @echo " CLIPPY " $@;
|
am__v_CLIPPY_0 = @echo " CLIPPY " $@;
|
||||||
am__v_CLIPPY_1 =
|
am__v_CLIPPY_1 =
|
||||||
|
|
||||||
|
CLIPPY_DEPS = $(HOSTTOOLS)lib/clippy $(top_srcdir)/python/clidef.py
|
||||||
|
|
||||||
SUFFIXES = _clippy.c .proto .pb-c.c .pb-c.h .pb.h
|
SUFFIXES = _clippy.c .proto .pb-c.c .pb-c.h .pb.h
|
||||||
.c_clippy.c:
|
.c_clippy.c:
|
||||||
$(AM_V_at)$(MAKE) -C $(top_builddir)/$(HOSTTOOLS) lib/clippy
|
@{ test -x $(top_builddir)/$(HOSTTOOLS)lib/clippy || $(MAKE) -C $(top_builddir)/$(HOSTTOOLS) lib/clippy; }
|
||||||
$(AM_V_CLIPPY)$(top_builddir)/$(HOSTTOOLS)lib/clippy $(top_srcdir)/python/clidef.py $< > $@.tmp
|
$(AM_V_CLIPPY)$(top_builddir)/$(HOSTTOOLS)lib/clippy $(top_srcdir)/python/clidef.py $< > $@.tmp
|
||||||
@{ test -f $@ && diff $@.tmp $@ >/dev/null 2>/dev/null; } && rm $@.tmp || mv $@.tmp $@
|
@{ test -f $@ && diff $@.tmp $@ >/dev/null 2>/dev/null; } && rm $@.tmp || mv $@.tmp $@
|
||||||
|
|
||||||
|
|
|
@ -73,6 +73,7 @@ lib_libfrr_la_SOURCES = \
|
||||||
lib/zclient.c \
|
lib/zclient.c \
|
||||||
# end
|
# end
|
||||||
|
|
||||||
|
lib/plist_clippy.c: $(CLIPPY_DEPS)
|
||||||
lib/plist.lo: lib/plist_clippy.c
|
lib/plist.lo: lib/plist_clippy.c
|
||||||
|
|
||||||
pkginclude_HEADERS += \
|
pkginclude_HEADERS += \
|
||||||
|
@ -220,12 +221,18 @@ BUILT_SOURCES += \
|
||||||
lib/route_types.h \
|
lib/route_types.h \
|
||||||
# end
|
# end
|
||||||
|
|
||||||
|
## force route_types.h
|
||||||
|
$(lib_clippy_OBJECTS): lib/route_types.h
|
||||||
|
$(lib_libfrr_la_OBJECTS): lib/route_types.h
|
||||||
|
|
||||||
AM_YFLAGS = -d -Dapi.prefix=@BISON_OPENBRACE@cmd_yy@BISON_CLOSEBRACE@ @BISON_VERBOSE@
|
AM_YFLAGS = -d -Dapi.prefix=@BISON_OPENBRACE@cmd_yy@BISON_CLOSEBRACE@ @BISON_VERBOSE@
|
||||||
|
|
||||||
lib/command_lex.h: lib/command_lex.c
|
lib/command_lex.h: lib/command_lex.c
|
||||||
@if test ! -f $@; then rm -f "lib/command_lex.c"; else :; fi
|
@if test ! -f $@; then rm -f "lib/command_lex.c"; else :; fi
|
||||||
@if test ! -f $@; then $(MAKE) $(AM_MAKEFLAGS) "lib/command_lex.c"; else :; fi
|
@if test ! -f $@; then $(MAKE) $(AM_MAKEFLAGS) "lib/command_lex.c"; else :; fi
|
||||||
|
lib/command_lex.lo: lib/command_parse.h
|
||||||
lib/command_parse.lo: lib/command_lex.h
|
lib/command_parse.lo: lib/command_lex.h
|
||||||
|
lib/lib_clippy-command_lex.$(OBJEXT): lib/command_parse.h
|
||||||
lib/lib_clippy-command_parse.$(OBJEXT): lib/command_lex.h
|
lib/lib_clippy-command_parse.$(OBJEXT): lib/command_lex.h
|
||||||
|
|
||||||
lib/route_types.h: $(top_srcdir)/lib/route_types.txt $(top_srcdir)/lib/route_types.pl
|
lib/route_types.h: $(top_srcdir)/lib/route_types.txt $(top_srcdir)/lib/route_types.pl
|
||||||
|
|
|
@ -66,6 +66,7 @@ zebra_zebra_SOURCES = \
|
||||||
zebra/zserv.c \
|
zebra/zserv.c \
|
||||||
# end
|
# end
|
||||||
|
|
||||||
|
zebra/zebra_vty_clippy.c: $(CLIPPY_DEPS)
|
||||||
zebra/zebra_vty.$(OBJEXT): zebra/zebra_vty_clippy.c
|
zebra/zebra_vty.$(OBJEXT): zebra/zebra_vty_clippy.c
|
||||||
|
|
||||||
noinst_HEADERS += \
|
noinst_HEADERS += \
|
||||||
|
|
Loading…
Reference in a new issue