From 5578a14d949d89e25ec3e6136158603049e5a2dd Mon Sep 17 00:00:00 2001 From: David Lamparter Date: Thu, 11 May 2017 15:36:04 +0200 Subject: 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 --- common.am | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'common.am') 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. -- cgit v1.2.3