From 46bf4306575fa31fccaff19f0a592f8b40dd46cb Mon Sep 17 00:00:00 2001 From: lonkaars Date: Fri, 31 Mar 2023 16:28:17 +0200 Subject: it's working --- test/ppu-stm-integration-demo/makefile | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'test/ppu-stm-integration-demo/makefile') diff --git a/test/ppu-stm-integration-demo/makefile b/test/ppu-stm-integration-demo/makefile index 853dd31..5f6d235 100644 --- a/test/ppu-stm-integration-demo/makefile +++ b/test/ppu-stm-integration-demo/makefile @@ -1,16 +1,19 @@ .PHONY: all clean -TARGETS := test-background-color.h test-image.h test-image-spi.tb.vhd test-image-ppu.tb.vhd test-background-color-spi.tb.vhd +SRCS := $(wildcard *.txt) +TARGETS += $(patsubst %.txt,%.h, $(SRCS)) +TARGETS += $(patsubst %.txt,%-ppu.tb.vhd, $(SRCS)) +TARGETS += $(patsubst %.txt,%-spi.tb.vhd, $(SRCS)) all: $(TARGETS) %.h: %.txt ./data2test.awk tr -d ':' < $< | ./data2test.awk > $@ -test-%-ppu.tb.vhd: test-%.txt ./data2pputb.awk +%-ppu.tb.vhd: %.txt ./data2pputb.awk tr -d ':' < $< | ./data2pputb.awk > $@ -test-%-spi.tb.vhd: test-%.txt ./data2spitb.awk +%-spi.tb.vhd: %.txt ./data2spitb.awk (tr -d ':' < $<; echo "ffff ffff") | ./data2spitb.awk > $@ clean: -- cgit v1.2.3