File tree Expand file tree Collapse file tree 2 files changed +11
-15
lines changed
Expand file tree Collapse file tree 2 files changed +11
-15
lines changed Original file line number Diff line number Diff line change @@ -67,7 +67,9 @@ bitcoin_bench_clean : FORCE
6767
6868%.raw.h: %.raw
6969 @$(MKDIR_P) $(@D)
70- @echo "static unsigned const char $(*F)[] = {" >> $@
71- @$(HEXDUMP) -v -e '8/1 "0x%02x, "' -e '"\n"' $< | $(SED) -e 's/0x ,//g' >> $@
72- @echo "};" >> $@
70+ @{ \
71+ echo "static unsigned const char $(*F)[] = {" && \
72+ $(HEXDUMP) -v -e '8/1 "0x%02x, "' -e '"\n"' $< | $(SED) -e 's/0x ,//g' && \
73+ echo "};"; \
74+ } > "$@.new" && mv -f "$@.new" "$@"
7375 @echo "Generated $@"
Original file line number Diff line number Diff line change @@ -149,16 +149,10 @@ endif
149149
150150%.json.h: %.json
151151 @$(MKDIR_P) $(@D)
152- @echo "namespace json_tests{" > $@
153- @echo "static unsigned const char $(*F)[] = {" >> $@
154- @$(HEXDUMP) -v -e '8/1 "0x%02x, "' -e '"\n"' $< | $(SED) -e 's/0x ,//g' >> $@
155- @echo "};};" >> $@
156- @echo "Generated $@"
157-
158- %.raw.h: %.raw
159- @$(MKDIR_P) $(@D)
160- @echo "namespace alert_tests{" > $@
161- @echo "static unsigned const char $(*F)[] = {" >> $@
162- @$(HEXDUMP) -v -e '8/1 "0x%02x, "' -e '"\n"' $< | $(SED) -e 's/0x ,//g' >> $@
163- @echo "};};" >> $@
152+ @{ \
153+ echo "namespace json_tests{" && \
154+ echo "static unsigned const char $(*F)[] = {" && \
155+ $(HEXDUMP) -v -e '8/1 "0x%02x, "' -e '"\n"' $< | $(SED) -e 's/0x ,//g' && \
156+ echo "};};"; \
157+ } > "$@.new" && mv -f "$@.new" "$@"
164158 @echo "Generated $@"
You can’t perform that action at this time.
0 commit comments