summaryrefslogtreecommitdiffstats
path: root/Makefile.am
diff options
context:
space:
mode:
authorDavid Lamparter <equinox@diac24.net>2019-06-04 15:35:16 +0200
committerDavid Lamparter <equinox@diac24.net>2019-06-12 19:22:59 +0200
commita71c5039ad6d11dcf1ef28aa23ebf92cf52a8ace (patch)
treee51ea89ae07c62a4087c7f56177a3a1b24c4a77b /Makefile.am
parentbuild: remove tests/Makefile.in (diff)
downloadfrr-a71c5039ad6d11dcf1ef28aa23ebf92cf52a8ace.tar.xz
frr-a71c5039ad6d11dcf1ef28aa23ebf92cf52a8ace.zip
build: improve clippy options
* adds a `--with-clippy=...` option to use a prebuilt clippy binary * limits the autoconf tests done for `--enable-clippy-only` (e.g. no libyang) Fixes: #3921 Fixes: #4006 Signed-off-by: David Lamparter <equinox@diac24.net>
Diffstat (limited to 'Makefile.am')
-rw-r--r--Makefile.am6
1 files changed, 6 insertions, 0 deletions
diff --git a/Makefile.am b/Makefile.am
index 166ac29d1..851cefc85 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -40,6 +40,12 @@ shvar-%:
var-%:
@echo "$($*)" >&$(VARFD)
+if ONLY_CLIPPY
+.DEFAULT_GOAL := clippy-only
+endif
+clippy-only: Makefile lib/clippy config.h
+.PHONY: clippy-only
+
# overwriting these vars breaks cross-compilation. let's be helpful and warn.
#
# note: "#AUTODERP# " will be removed from Makefile by configure. These are