From 86aee334779952ad4718ff1f3959bf32c8580260 Mon Sep 17 00:00:00 2001 From: Sean Anderson Date: Wed, 24 Aug 2022 12:10:07 -0400 Subject: [PATCH] Use MODULE variable for tests Instead of listing out tested modules each time, use a variable. Signed-off-by: Sean Anderson --- Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 0f130b7..714276f 100644 --- a/Makefile +++ b/Makefile @@ -63,8 +63,10 @@ endef %.post.fst: rtl/%.post.vvp tb/%.py FORCE $(run-vvp) +MODULES := pcs pmd + .PHONY: test -test: $(addsuffix .fst,pcs pmd) $(addsuffix .post.fst,pcs pmd) +test: $(addsuffix .fst,$(MODULES)) $(addsuffix .post.fst,$(MODULES)) .PHONY: clean clean: