From 5012f42fe783af6f2136738908c55651bc792af5 Mon Sep 17 00:00:00 2001 From: Jim Klimov Date: Sat, 25 Jan 2025 01:04:47 +0100 Subject: [PATCH] Makefile.am: separate meaning of memcheck vs. distcheck-valgrind targets Signed-off-by: Jim Klimov --- Makefile.am | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Makefile.am b/Makefile.am index 7e4bdb53df..f581165d83 100644 --- a/Makefile.am +++ b/Makefile.am @@ -97,8 +97,13 @@ distcheck-light-man: +prefix='$${prefix}'; $(MAKE) $(AM_MAKEFLAGS) DISTCHECK_FLAGS="$(DISTCHECK_LIGHT_MAN_FLAGS)" distcheck if HAVE_VALGRIND +# Make the check in current build, if possible +memcheck: + @echo "See also scripts/valgrind in NUT sources for a helper tool" + +@cd $(builddir)/tests && $(MAKE) $(AM_MAKEFLAGS) -s $@ + # Make a distcheck (and check in particular) with enabled valgrind and debug info -memcheck distcheck-valgrind: +distcheck-valgrind: @echo "See also scripts/valgrind in NUT sources for a helper tool" +prefix='$${prefix}'; $(MAKE) $(AM_MAKEFLAGS) DISTCHECK_FLAGS="$(DISTCHECK_VALGRIND_FLAGS)" distcheck else !HAVE_VALGRIND