common: fix up missing file which can cause parallel build issues.

And add checks for any others!

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
Rusty Russell 2021-07-23 16:14:14 +09:30 committed by neil saitug
parent ceb40dea38
commit 60edf14fc7
1 changed files with 8 additions and 0 deletions

View File

@ -10,6 +10,7 @@ COMMON_SRC_NOGEN := \
common/bip32.c \
common/blinding.c \
common/blindedpath.c \
common/blockheight_states.c \
common/bolt11.c \
common/bolt11_json.c \
common/bolt12.c \
@ -111,6 +112,13 @@ COMMON_SRC := $(COMMON_SRC_NOGEN) $(COMMON_SRC_GEN)
COMMON_OBJS := $(COMMON_SRC:.c=.o)
# Check that all h and c files are in the Makefile!
check-common-files:
@$(call VERBOSE, "MISSING-SRC common", [ "$(filter-out $(COMMON_SRC), $(wildcard common/*.c))" = "" ])
@$(call VERBOSE, "MISSING-HEADERS common", [ "$(filter-out $(COMMON_HEADERS) $(COMMON_SRC:.c=.h), $(wildcard common/*.h))" = "" ])
check-source: check-common-files
# Common objects depends on bitcoin/ external/ and ccan
$(COMMON_OBJS): $(CCAN_HEADERS) $(BITCOIN_HEADERS) $(EXTERNAL_HEADERS) $(COMMON_HEADERS_GEN)