From 4f12ff0967a2efb4c6366ac057b9f581b03accfd Mon Sep 17 00:00:00 2001 From: YOSHIDA Masanori Date: Thu, 22 Oct 2020 22:55:27 +0900 Subject: [PATCH] Makefile: add $(LIGHTNINGD_SRC_NOHDR) to $(ALL_C_SOURCES) for "make clean" to work properly "make clean" removes all object files listed in $(ALL_OBJS), which is derived from $(ALL_C_SOURCES). Source files in $(LIGHTNINGD_SRC_NOHDR) are missing from $(ALL_C_SOURCES) therefore some object files are not removed by "make clean". This commit fixes this point. Signed-off-by: YOSHIDA Masanori Changelog-None --- lightningd/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lightningd/Makefile b/lightningd/Makefile index 968e0b21d..7c810902b 100644 --- a/lightningd/Makefile +++ b/lightningd/Makefile @@ -56,7 +56,7 @@ LIGHTNINGD_OBJS := $(LIGHTNINGD_SRC:.c=.o) $(LIGHTNINGD_SRC_NOHDR:.c=.o) $(LIGHTNINGD_OBJS): $(LIGHTNINGD_HEADERS) $(LIGHTNINGD_CONTROL_HEADERS) # Make sure these depend on everything. -ALL_C_SOURCES += $(LIGHTNINGD_SRC) +ALL_C_SOURCES += $(LIGHTNINGD_SRC) $(LIGHTNINGD_SRC_NOHDR) ALL_C_HEADERS += $(LIGHTNINGD_HEADERS) ALL_PROGRAMS += lightningd/lightningd