From 4bd27ec7227438d2cb03b84c875de1fbf2ff2b8b Mon Sep 17 00:00:00 2001 From: Rusty Russell Date: Thu, 7 Jun 2018 12:13:45 +0930 Subject: [PATCH] Makefile: clean should not delete configure results, distclean only. Signed-off-by: Rusty Russell --- Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index ef712a1c9..6d164e015 100644 --- a/Makefile +++ b/Makefile @@ -345,6 +345,7 @@ all-programs: $(ALL_PROGRAMS) all-test-programs: $(ALL_TEST_PROGRAMS) distclean: clean + $(RM) ccan/config.h config.vars maintainer-clean: distclean @echo 'This command is intended for maintainers to use; it' @@ -354,7 +355,7 @@ clean: wire-clean $(RM) $(CCAN_OBJS) $(CDUMP_OBJS) $(ALL_OBJS) $(RM) $(ALL_PROGRAMS) $(ALL_PROGRAMS:=.o) $(RM) $(ALL_TEST_PROGRAMS) $(ALL_TEST_PROGRAMS:=.o) - $(RM) ccan/config.h gen_*.h config.vars ccan/tools/configurator/configurator + $(RM) gen_*.h ccan/tools/configurator/configurator $(RM) ccan/ccan/cdump/tools/cdump-enumstr.o $(RM) check-bolt tools/check-bolt tools/*.o find . -name '*gcda' -delete