mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-10-11 12:03:04 +02:00
Merge bitcoin/bitcoin#25813: build: move raw rule into Makefile.am
d8b26abed9
build: move raw rule into Makefile.am (fanquake) Pull request description: The same rule is used by the tests and benchmarks to generate headers, and currently causes #25501. Just deduplicate the code into Makefile.am. Fixes: #25501. ACKs for top commit: hebasto: ACKd8b26abed9
, tested on Ubuntu 22.04, the moved code was verified using `git diff --color-moved=dimmed-zebra HEAD~1..HEAD`. jarolrod: tACKd8b26abed9
Tree-SHA512: 249813318c92f992a89002fb9b96e70fca6ca97b2136ba0a7f5cc312e9abe24fbbe9a8faddb3bc1c0d775ae901bc91eab63ba564810bb2e3b9d56a2b1a107eb1
This commit is contained in:
@@ -1065,6 +1065,15 @@ nodist_libbitcoin_ipc_a_SOURCES = $(libbitcoin_ipc_mpgen_output)
|
|||||||
CLEANFILES += $(libbitcoin_ipc_mpgen_output)
|
CLEANFILES += $(libbitcoin_ipc_mpgen_output)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
%.raw.h: %.raw
|
||||||
|
@$(MKDIR_P) $(@D)
|
||||||
|
@{ \
|
||||||
|
echo "static unsigned const char $(*F)_raw[] = {" && \
|
||||||
|
$(HEXDUMP) -v -e '8/1 "0x%02x, "' -e '"\n"' $< | $(SED) -e 's/0x ,//g' && \
|
||||||
|
echo "};"; \
|
||||||
|
} > "$@.new" && mv -f "$@.new" "$@"
|
||||||
|
@echo "Generated $@"
|
||||||
|
|
||||||
include Makefile.minisketch.include
|
include Makefile.minisketch.include
|
||||||
|
|
||||||
include Makefile.crc32c.include
|
include Makefile.crc32c.include
|
||||||
|
@@ -93,12 +93,3 @@ bench: $(BENCH_BINARY) FORCE
|
|||||||
|
|
||||||
bitcoin_bench_clean : FORCE
|
bitcoin_bench_clean : FORCE
|
||||||
rm -f $(CLEAN_BITCOIN_BENCH) $(bench_bench_bitcoin_OBJECTS) $(BENCH_BINARY)
|
rm -f $(CLEAN_BITCOIN_BENCH) $(bench_bench_bitcoin_OBJECTS) $(BENCH_BINARY)
|
||||||
|
|
||||||
%.raw.h: %.raw
|
|
||||||
@$(MKDIR_P) $(@D)
|
|
||||||
@{ \
|
|
||||||
echo "static unsigned const char $(*F)_raw[] = {" && \
|
|
||||||
$(HEXDUMP) -v -e '8/1 "0x%02x, "' -e '"\n"' $< | $(SED) -e 's/0x ,//g' && \
|
|
||||||
echo "};"; \
|
|
||||||
} > "$@.new" && mv -f "$@.new" "$@"
|
|
||||||
@echo "Generated $@"
|
|
||||||
|
@@ -415,12 +415,3 @@ endif
|
|||||||
echo "};};"; \
|
echo "};};"; \
|
||||||
} > "$@.new" && mv -f "$@.new" "$@"
|
} > "$@.new" && mv -f "$@.new" "$@"
|
||||||
@echo "Generated $@"
|
@echo "Generated $@"
|
||||||
|
|
||||||
%.raw.h: %.raw
|
|
||||||
@$(MKDIR_P) $(@D)
|
|
||||||
@{ \
|
|
||||||
echo "static unsigned const char $(*F)_raw[] = {" && \
|
|
||||||
$(HEXDUMP) -v -e '8/1 "0x%02x, "' -e '"\n"' $< | $(SED) -e 's/0x ,//g' && \
|
|
||||||
echo "};"; \
|
|
||||||
} > "$@.new" && mv -f "$@.new" "$@"
|
|
||||||
@echo "Generated $@"
|
|
||||||
|
Reference in New Issue
Block a user