From 40b264cf9597508027b2ca247d7e6eda517ede4b Mon Sep 17 00:00:00 2001 From: Rusty Russell Date: Wed, 26 May 2021 15:09:01 +0930 Subject: [PATCH] Makefile: fix $(FORCE) in sub-Makefiles It needs to be defined before we include them. Signed-off-by: Rusty Russell --- Makefile | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Makefile b/Makefile index 646d90e5c..ac6fb7035 100644 --- a/Makefile +++ b/Makefile @@ -258,6 +258,11 @@ endif default: show-flags all-programs all-test-programs doc-all +ifneq ($(SUPPRESS_GENERATION),1) +FORCE = FORCE +FORCE:: +endif + show-flags: config.vars @$(ECHO) "CC: $(CC) $(CFLAGS) -c -o" @$(ECHO) "LD: $(LINK.o) $(filter-out %.a,$^) $(LOADLIBES) $(EXTERNAL_LDLIBS) $(LDLIBS) -o" @@ -536,11 +541,6 @@ ncc: ${TARGET_DIR}/libwally-core-build/src/libwallycore.la TAGS: $(RM) TAGS; find * -name test -type d -prune -o -name '*.[ch]' -print -o -name '*.py' -print | xargs etags --append -ifneq ($(SUPPRESS_GENERATION),1) -FORCE = FORCE -FORCE:: -endif - ccan/ccan/cdump/tools/cdump-enumstr: ccan/ccan/cdump/tools/cdump-enumstr.o $(CDUMP_OBJS) $(CCAN_OBJS) ALL_PROGRAMS += ccan/ccan/cdump/tools/cdump-enumstr