From 792409865b159aaf49e3153a5f6c136f199e70a3 Mon Sep 17 00:00:00 2001 From: Johannes Stoelp Date: Tue, 26 Mar 2024 22:03:21 +0100 Subject: make: wildcard to pickup tests rather than explicit listing --- Makefile | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) (limited to 'Makefile') 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 --------------------------------------------------------------------- -- cgit v1.2.3