Fix alertTests.raw.h generation (#1868)

This commit is contained in:
UdjinM6 2018-01-24 11:11:22 +03:00 committed by GitHub
parent b84afb2512
commit c13afaad8b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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 $@"