Use MODULE variable for tests

Instead of listing out tested modules each time, use a variable.

Signed-off-by: Sean Anderson <seanga2@gmail.com>
This commit is contained in:
Sean Anderson 2022-08-24 12:10:07 -04:00
parent 50c1080ba4
commit 86aee33477
1 changed files with 3 additions and 1 deletions

View File

@ -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: