aboutsummaryrefslogtreecommitdiff
path: root/src/Makefile.test.include
diff options
context:
space:
mode:
authorlangerhans <[email protected]>2018-10-07 08:42:08 -0700
committerRoss Nicoll <[email protected]>2019-03-25 05:36:12 +0000
commit8c8ceb7dc1aa750e9f69d16c7b3c33b060e71e0b (patch)
tree7a5466ea07658e14ebfbb59ebf9e6fdc2af3e2ae /src/Makefile.test.include
parentUpdate release notes for 1.14 (#1464) (diff)
downloaddiscoin-8c8ceb7dc1aa750e9f69d16c7b3c33b060e71e0b.tar.xz
discoin-8c8ceb7dc1aa750e9f69d16c7b3c33b060e71e0b.zip
Add rule to generate raw.h file to test Makefile
Diffstat (limited to 'src/Makefile.test.include')
-rw-r--r--src/Makefile.test.include9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/Makefile.test.include b/src/Makefile.test.include
index d310290b4..1e3eaea88 100644
--- a/src/Makefile.test.include
+++ b/src/Makefile.test.include
@@ -221,3 +221,12 @@ endif
echo "};};"; \
} > "[email protected]" && mv -f "[email protected]" "$@"
@echo "Generated $@"
+
+%.raw.h: %.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 "};"; \
+ } > "[email protected]" && mv -f "[email protected]" "$@"
+ @echo "Generated $@"