File tree Expand file tree Collapse file tree 2 files changed +7
-4
lines changed
Expand file tree Collapse file tree 2 files changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -471,10 +471,6 @@ mkdocs.yml: $(MANPAGES:=.md)
471471 )
472472
473473
474-
475- # Don't delete these intermediaries.
476- .PRECIOUS : $(ALL_GEN_HEADERS ) $(ALL_GEN_SOURCES ) $(PYTHON_GENERATED )
477-
478474# Every single object file.
479475ALL_OBJS := $(ALL_C_SOURCES:.c=.o )
480476
@@ -701,6 +697,9 @@ endif
701697header_versions_gen.h : tools/headerversions $(FORCE )
702698 @tools/headerversions $@
703699
700+ # Once you have libccan.a, you don't need these.
701+ .INTERMEDIATE : $(CCAN_OBJS )
702+
704703# We make a static library, this way linker can discard unused parts.
705704libccan.a : $(CCAN_OBJS )
706705 @$(call VERBOSE, "ar $@ ", $(AR ) r $@ $(CCAN_OBJS ) )
Original file line number Diff line number Diff line change @@ -62,6 +62,8 @@ ifeq ($(DEBUGBUILD),1)
6262WALLY_OPTS =--enable-debug
6363endif
6464
65+ .INTERMEDIATE : $(TARGET_DIR ) /libwally-core-build/src/secp256k1/libsecp256k1.la $(TARGET_DIR ) /libwally-core-build/src/libwallycore.la
66+
6567$(TARGET_DIR ) /libwally-core-build/src/libwallycore.% $(TARGET_DIR ) /libwally-core-build/src/secp256k1/libsecp256k1.% : $(LIBWALLY_HEADERS ) $(LIBSECP_HEADERS )
6668 cd external/libwally-core && ./tools/autogen.sh
6769 mkdir -p ${TARGET_DIR} /libwally-core-build
@@ -87,6 +89,8 @@ $(TARGET_DIR)/jsmn-build/jsmn.o: external/jsmn/jsmn.c Makefile
8789$(TARGET_DIR ) /libjsmn.a : $(TARGET_DIR ) /jsmn-build/jsmn.o
8890 $(AR ) rc $@ $<
8991
92+ .INTERMEDIATE : $(TARGET_DIR ) /jsmn-build/jsmn.o
93+
9094# Need separate build dir: changes inside submodule make git think it's dirty.
9195$(TARGET_DIR ) /libbacktrace.a : external/libbacktrace/backtrace.h
9296 mkdir -p $(TARGET_DIR ) /libbacktrace-build
You can’t perform that action at this time.
0 commit comments