diff options
author | David Lamparter <equinox@opensourcerouting.org> | 2017-05-11 15:36:04 +0200 |
---|---|---|
committer | David Lamparter <equinox@opensourcerouting.org> | 2017-06-14 19:29:26 +0200 |
commit | 5578a14d949d89e25ec3e6136158603049e5a2dd (patch) | |
tree | fc1df6006271fb7f73cf8802c4022b266e0344b1 /common.am | |
parent | lib: clippy the assistant (diff) | |
download | frr-5578a14d949d89e25ec3e6136158603049e5a2dd.tar.xz frr-5578a14d949d89e25ec3e6136158603049e5a2dd.zip |
python: clidef.py
Adds "DEFPY()" which invokes an additional layer of preprocessing, so
that we get pre-parsed and named function arguments for the CLI.
Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
Diffstat (limited to 'common.am')
-rw-r--r-- | common.am | 11 |
1 files changed, 11 insertions, 0 deletions
@@ -3,6 +3,17 @@ # tree. # +AM_V_CLIPPY = $(am__v_CLIPPY_$(V)) +am__v_CLIPPY_ = $(am__v_CLIPPY_$(AM_DEFAULT_VERBOSITY)) +am__v_CLIPPY_0 = @echo " CLIPPY " $@; +am__v_CLIPPY_1 = + +SUFFIXES = _clippy.c +.c_clippy.c: + $(AM_V_at)$(MAKE) -C $(top_builddir)/$(CLIPPYDIR) clippy + $(AM_V_CLIPPY)$(top_builddir)/$(CLIPPYDIR)/clippy $(top_srcdir)/python/clidef.py $< > $@.tmp + @{ test -f $@ && diff $@.tmp $@ >/dev/null 2>/dev/null; } && rm $@.tmp || mv $@.tmp $@ + if HAVE_PROTOBUF # Uncomment to use an non-system version of libprotobuf-c. |