aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Makefile
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2023-06-30 03:20:37 +0200
committerEgor Tensin <Egor.Tensin@gmail.com>2023-06-30 03:32:14 +0200
commit570fcf2221b2e3d3b898731dae8c32244270af98 (patch)
tree5c72ad0a0ca6986cd29d35c9ec995ad5dbb9fd26 /Makefile
parentshow git hash with --version (diff)
downloadcimple-570fcf2221b2e3d3b898731dae8c32244270af98.tar.gz
cimple-570fcf2221b2e3d3b898731dae8c32244270af98.zip
Makefile: add some banners
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile17
1 files changed, 14 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 769db70..4ab6c72 100644
--- a/Makefile
+++ b/Makefile
@@ -46,7 +46,10 @@ clean:
.PHONY: build
build:
- mkdir -p -- '$(call escape,$(cmake_dir))'
+ @echo -----------------------------------------------------------------
+ @echo Building
+ @echo -----------------------------------------------------------------
+ @mkdir -p -- '$(call escape,$(cmake_dir))'
cmake \
-G 'Unix Makefiles' \
-D 'CMAKE_C_COMPILER=$(call escape,$(COMPILER))' \
@@ -64,11 +67,19 @@ install: build
.PHONY: test
test:
- cd -- '$(call escape,$(cmake_dir))' && ctest --verbose --exclude-regex python_tests_valgrind
+ @echo -----------------------------------------------------------------
+ @echo Running tests
+ @echo -----------------------------------------------------------------
+ ctest --test-dir '$(call escape,$(cmake_dir))' \
+ --verbose --exclude-regex python_tests_valgrind
.PHONY: test/valgrind
test/valgrind:
- cd -- '$(call escape,$(cmake_dir))' && ctest --verbose --tests-regex python_tests_valgrind
+ @echo -----------------------------------------------------------------
+ @echo Running tests w/ Valgrind
+ @echo -----------------------------------------------------------------
+ ctest --test-dir '$(call escape,$(cmake_dir))' \
+ --verbose --tests-regex python_tests_valgrind
.PHONY: test/all
test/all: test test/valgrind