From 910840fdee8ecdb0ca720d4a52859ef2f7de88b9 Mon Sep 17 00:00:00 2001 From: EuAndreh Date: Thu, 5 Aug 2021 16:21:11 -0300 Subject: Makefile: Add "c-dev-check" target with Valgrind --- Makefile | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 709364c..9c007a0 100644 --- a/Makefile +++ b/Makefile @@ -63,7 +63,18 @@ uninstall: # Personal workflow targets # -dev-check: check public + +VALGRIND_FLAGS = \ + --show-error-list=yes \ + --show-leak-kinds=all \ + --leak-check=full \ + --track-origins=yes \ + --error-exitcode=1 + +c-dev-check: check + valgrind $(VALGRIND_FLAGS) ./src/gistatic.t + +dev-check: c-dev-check public sh aux/assert-shellcheck.sh sh aux/workflow/assert-todos.sh sh aux/workflow/assert-changelog.sh -n $(NAME) -- cgit v1.2.3