Makefiles: remove redundant dependencies, and have objects depend on their Makefile.
1. $(JSMN_OBJS) is not set anywhere. 2. You don't need to depend on CCAN_HEADERS, COMMON_HEADERS or JSMN_HEADERS: the top level Makefile has all object depedning on it. 3. Similarly, CCAN_OBJS. 4. Every object file should be rebuilt if its Makefile changes. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
@@ -38,9 +38,6 @@ BITCOIN_HEADERS := bitcoin/address.h \
|
||||
bitcoin/tx_parts.h \
|
||||
bitcoin/varint.h
|
||||
|
||||
# Bitcoin objects depends on bitcoin/ external/ and ccan
|
||||
$(BITCOIN_OBJS): $(CCAN_HEADERS) $(BITCOIN_HEADERS) $(EXTERNAL_HEADERS)
|
||||
|
||||
ALL_C_HEADERS += $(BITCOIN_HEADERS)
|
||||
ALL_C_SOURCES += $(BITCOIN_SRC)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user