diff options
| author | Wladimir J. van der Laan <[email protected]> | 2016-11-15 10:34:46 +0100 |
|---|---|---|
| committer | Wladimir J. van der Laan <[email protected]> | 2016-11-15 10:34:56 +0100 |
| commit | 018a4eb120dcdab73f07ca02d18a5c8843509d67 (patch) | |
| tree | e49b83f39f5064eba79c1c4380a0c43085ba0d72 /src/Makefile.test.include | |
| parent | Merge #9132: Make strWalletFile const (diff) | |
| parent | Bugfix: Correctly replace generated headers and fail cleanly (diff) | |
| download | discoin-018a4eb120dcdab73f07ca02d18a5c8843509d67.tar.xz discoin-018a4eb120dcdab73f07ca02d18a5c8843509d67.zip | |
Merge #9140: Bugfix: Correctly replace generated headers and fail cleanly
b74ff5c Bugfix: Correctly replace generated headers and fail cleanly (Luke Dashjr)
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 $@" |