summaryrefslogtreecommitdiffstats
path: root/common.am
diff options
context:
space:
mode:
authorDavid Lamparter <equinox@opensourcerouting.org>2017-05-11 15:36:04 +0200
committerDavid Lamparter <equinox@opensourcerouting.org>2017-06-14 19:29:26 +0200
commit5578a14d949d89e25ec3e6136158603049e5a2dd (patch)
treefc1df6006271fb7f73cf8802c4022b266e0344b1 /common.am
parentlib: clippy the assistant (diff)
downloadfrr-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.am11
1 files changed, 11 insertions, 0 deletions
diff --git a/common.am b/common.am
index d01d673ae..0ccc4c9fd 100644
--- a/common.am
+++ b/common.am
@@ -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.