diff options
| author | Cory Fields <[email protected]> | 2014-06-04 17:13:03 -0400 |
|---|---|---|
| committer | Cory Fields <[email protected]> | 2014-06-05 16:05:57 -0400 |
| commit | 6b9f0d5554b75fcc24cbce10e16872df3e103226 (patch) | |
| tree | a82b54f543772d0e07e1c3dda19775897f75ab17 /src/Makefile.test.include | |
| parent | build: add stub makefiles for easier subdir builds (diff) | |
| download | discoin-6b9f0d5554b75fcc24cbce10e16872df3e103226.tar.xz discoin-6b9f0d5554b75fcc24cbce10e16872df3e103226.zip | |
build: nuke Makefile.include from orbit
Rules and targets no longer need to be shared between subdirectories, so
this is no longer needed.
Diffstat (limited to 'src/Makefile.test.include')
| -rw-r--r-- | src/Makefile.test.include | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/Makefile.test.include b/src/Makefile.test.include index 4a70b0f9e..14288ee21 100644 --- a/src/Makefile.test.include +++ b/src/Makefile.test.include @@ -85,3 +85,19 @@ bitcoin_test_check: $(TEST_BINARY) FORCE bitcoin_test_clean : FORCE rm -f $(CLEAN_BITCOIN_TEST) $(test_test_bitcoin_OBJECTS) $(TEST_BINARY) + +%.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 "Generated $@" |