diff options
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -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 |