[PATCH nft v2 3/5] build: add `make check-tree` to check consistency of source tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The script "tools/check-tree.sh" performs some consistency checks of the
source tree. Call it from a make target "check-tree".

Note that `make check-tree` is hooked into `make check-local`, which in
turn is hooked into `make check` and `make distcheck`.

Signed-off-by: Thomas Haller <thaller@xxxxxxxxxx>
---
 Makefile.am | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/Makefile.am b/Makefile.am
index 6a0b04641afc..48d138636d2f 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -408,6 +408,7 @@ EXTRA_DIST += \
 EXTRA_DIST += \
 	files \
 	tests \
+	tools \
 	$(NULL)
 
 pkgconfigdir = $(libdir)/pkgconfig
@@ -421,6 +422,13 @@ build-all: all $(check_PROGRAMS) $(check_LTLIBRARIES)
 
 ###############################################################################
 
+check-tree:
+	"$(srcdir)/tools/check-tree.sh"
+
+check_local += check-tree
+
+###############################################################################
+
 check-build: build-all
 	cd "$(srcdir)/tests/build/" ; \
 	CC="$(CC)" CFLAGS='-Werror' ./run-tests.sh
-- 
2.41.0




[Index of Archives]     [Netfitler Users]     [Berkeley Packet Filter]     [LARTC]     [Bugtraq]     [Yosemite Forum]

  Powered by Linux