Skip to content

Commit

Permalink
Fix alertTests.raw.h generation (#1868)
Browse files Browse the repository at this point in the history
  • Loading branch information
UdjinM6 committed Jan 24, 2018
1 parent b84afb2 commit c13afaa
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/Makefile.test.include
Original file line number Diff line number Diff line change
Expand Up @@ -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 $@"

0 comments on commit c13afaa

Please sign in to comment.