From 60edf14fc756130031ebaa59cdc344cca3f390fc Mon Sep 17 00:00:00 2001 From: Rusty Russell Date: Fri, 23 Jul 2021 16:14:14 +0930 Subject: [PATCH] common: fix up missing file which can cause parallel build issues. And add checks for any others! Signed-off-by: Rusty Russell --- common/Makefile | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/common/Makefile b/common/Makefile index 0ca8359fb..aeadc739a 100644 --- a/common/Makefile +++ b/common/Makefile @@ -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)