diff options
| author | Luke Dashjr <[email protected]> | 2016-11-12 07:15:02 +0000 |
|---|---|---|
| committer | Luke Dashjr <[email protected]> | 2016-11-12 07:16:28 +0000 |
| commit | b74ff5cf0c902b993a759f9ac92d95e186397662 (patch) | |
| tree | 01ce828f0ceee38f34a61f722f5ea17ddf3692ff /src/Makefile.test.include | |
| parent | Add deserialize + CheckBlock benchmarks, and a full block hex (diff) | |
| download | discoin-b74ff5cf0c902b993a759f9ac92d95e186397662.tar.xz discoin-b74ff5cf0c902b993a759f9ac92d95e186397662.zip | |
Bugfix: Correctly replace generated headers and fail cleanly
Also removes generation of headers for *.raw files in test_bitcoin (none exist anymore)
Diffstat (limited to 'src/Makefile.test.include')
| -rw-r--r-- | src/Makefile.test.include | 18 |
1 files changed, 6 insertions, 12 deletions
diff --git a/src/Makefile.test.include b/src/Makefile.test.include index fa610e300..a14adc787 100644 --- a/src/Makefile.test.include +++ b/src/Makefile.test.include @@ -149,16 +149,10 @@ endif %.json.h: %.json @$(MKDIR_P) $(@D) - @echo "namespace json_tests{" > $@ - @echo "static unsigned const char $(*F)[] = {" >> $@ - @$(HEXDUMP) -v -e '8/1 "0x%02x, "' -e '"\n"' $< | $(SED) -e 's/0x ,//g' >> $@ - @echo "};};" >> $@ - @echo "Generated $@" - -%.raw.h: %.raw - @$(MKDIR_P) $(@D) - @echo "namespace alert_tests{" > $@ - @echo "static unsigned const char $(*F)[] = {" >> $@ - @$(HEXDUMP) -v -e '8/1 "0x%02x, "' -e '"\n"' $< | $(SED) -e 's/0x ,//g' >> $@ - @echo "};};" >> $@ + @{ \ + echo "namespace json_tests{" && \ + 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 $@" |