summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile7
1 files changed, 5 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 8d8474b..65a7055 100644
--- a/Makefile
+++ b/Makefile
@@ -3,6 +3,9 @@ BUILD_DIR ?= $(PROFILE)
__build:
mkdir -p $(BUILD_DIR)
P=`pwd` && cd $(BUILD_DIR) && cmake -DCMAKE_BUILD_TYPE=$(PROFILE) -DCMAKE_EXPORT_COMPILE_COMMANDS=1 $$P
- make -j16 -C $(BUILD_DIR)
+ $(MAKE) -C $(BUILD_DIR)
-.PHONY: __build
+test: __build
+ valgrind --exit-on-first-error=yes --error-exitcode=1 $(BUILD_DIR)/tests
+
+.PHONY: __build test