aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohannes Stoelp <johannes.stoelp@gmail.com>2024-03-26 22:03:21 +0100
committerJohannes Stoelp <johannes.stoelp@gmail.com>2024-03-26 22:03:21 +0100
commit792409865b159aaf49e3153a5f6c136f199e70a3 (patch)
tree5817db8e2f1ed2c012f9323ad76ed1d30ca8fe42
parenta15db74027fde75efef34f391d2a458bf64001d0 (diff)
downloadcpp-utils-main.tar.gz
cpp-utils-main.zip
make: wildcard to pickup tests rather than explicit listingHEADmain
-rw-r--r--Makefile13
1 files changed, 4 insertions, 9 deletions
diff --git a/Makefile b/Makefile
index 808c71f..0cf7eb6 100644
--- a/Makefile
+++ b/Makefile
@@ -1,15 +1,10 @@
-TEST += bitfield
-TEST += option
-TEST += timer
-TEST += log
-TEST += owning_mutex
-TEST += latch
+TEST = $(wildcard test/*.cc)
# -- INTERNALS -----------------------------------------------------------------
-BINS = $(TEST:%=build/%)
-DEPS = $(TEST:%=build/%.d)
-RUNS = $(TEST:%=run/%)
+BINS = $(TEST:test/%.cc=build/%)
+DEPS = $(TEST:test/%.cc=build/%.d)
+RUNS = $(TEST:test/%.cc=run/%)
# -- FLAGS ---------------------------------------------------------------------