aboutsummaryrefslogtreecommitdiff
path: root/test/ppu-stm-integration-demo/makefile
diff options
context:
space:
mode:
Diffstat (limited to 'test/ppu-stm-integration-demo/makefile')
-rw-r--r--test/ppu-stm-integration-demo/makefile8
1 files changed, 2 insertions, 6 deletions
diff --git a/test/ppu-stm-integration-demo/makefile b/test/ppu-stm-integration-demo/makefile
index 7d7a7c8..2f4b6f4 100644
--- a/test/ppu-stm-integration-demo/makefile
+++ b/test/ppu-stm-integration-demo/makefile
@@ -4,12 +4,8 @@ TARGETS := test-background-color.h test-image.h test-image.tb.vhd
all: $(TARGETS)
-%.h: %.txt
- echo "#pragma once" > $@
- echo "#include <stdint.h>" >> $@
- (printf "#define HH_PPUINTDEMO_LENGTH "; wc -l < $<) >> $@
- tr -d ':' < $< | awk 'BEGIN { printf "const uint16_t HH_PPUINTDEMO_ADDR[] = { " } 1 { printf "0x"$$1", " } END { print "};" }' >> $@
- tr -d ':' < $< | awk 'BEGIN { printf "const uint16_t HH_PPUINTDEMO_DATA[] = { " } 1 { printf "0x"$$2", " } END { print "};" }' >> $@
+%.h: %.txt ./data2test.awk
+ tr -d ':' < $< | ./data2test.awk > $@
test-%.tb.vhd: test-%.txt ./data2vhdltb.awk
tr -d ':' < $< | ./data2vhdltb.awk > $@