blob: 0eeada58f4d516208e72b678ac54b18d25ae8d35 (
plain)
1
2
3
4
5
6
7
8
|
all: test-background-color.h test-image.h
%.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 "};" }' >> $@
|