From c13afaad8b285eeeddfab1c460cf33a1e54a4a7d Mon Sep 17 00:00:00 2001 From: UdjinM6 Date: Wed, 24 Jan 2018 11:11:22 +0300 Subject: [PATCH] Fix alertTests.raw.h generation (#1868) --- src/Makefile.test.include | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/Makefile.test.include b/src/Makefile.test.include index dcf92561aa..e043ec90be 100644 --- a/src/Makefile.test.include +++ b/src/Makefile.test.include @@ -192,3 +192,12 @@ endif echo "};};"; \ } > "$@.new" && mv -f "$@.new" "$@" @echo "Generated $@" + +alertTests.raw.h: alertTests.raw + @$(MKDIR_P) $(@D) + @{ \ + echo "static unsigned const char $(*F)[] = {" && \ + $(HEXDUMP) -v -e '8/1 "0x%02x, "' -e '"\n"' $< | $(SED) -e 's/0x ,//g' && \ + echo "};"; \ + } > "$@.new" && mv -f "$@.new" "$@" + @echo "Generated $@"