diff --git a/testbench/Makefile b/testbench/Makefile index ee633ed..cf0a125 100644 --- a/testbench/Makefile +++ b/testbench/Makefile @@ -1,17 +1,18 @@ all: verify -# BENCHES = $(filter-out common/, $(sort $(dir $(wildcard */)))) -BENCHES = basic_test +BENCH ?= $(sort $(dir $(wildcard test_*/))) -$(info $$BENCHES is [${BENCHES}]) +# override bench to disable test_c +BENCH = test_basic verify: - make -C test_basic verify - make -C test_c verify + $(foreach dir, $(BENCH), make -C $(dir) verify;) clean: - make -C test_basic clean - make -C test_c clean + $(foreach dir, $(BENCH), make -C $(dir) clean;) + +help: + $(info BENCH options: [${BENCH}]) .SECONDARY: -.PHONY: all clean verify +.PHONY: all clean verify help