From ee9daea58665554440f59659ae07a3b697d4bc58 Mon Sep 17 00:00:00 2001 From: Xiang Xiao Date: Sun, 26 Apr 2020 01:08:13 +0800 Subject: [PATCH] Remove the residual files in the distclean action Signed-off-by: Xiang Xiao --- tools/Makefile.unix | 4 ++++ tools/Makefile.win | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/tools/Makefile.unix b/tools/Makefile.unix index f71e91a248..a668447d9b 100644 --- a/tools/Makefile.unix +++ b/tools/Makefile.unix @@ -387,6 +387,7 @@ clean_context: $(MAKE) -C $$dir TOPDIR="$(TOPDIR)" clean_context ; \ fi \ done + $(call DELFILE, include/float.h) $(call DELFILE, include/math.h) $(call DELFILE, include/stdarg.h) $(call DELFILE, include/setjmp.h) @@ -612,6 +613,7 @@ clean: subdir_clean $(call DELDIR, nuttx-export*) $(call DELFILE, nuttx_user*) $(call DELDIR, staging) + $(call DELFILE, uImage) $(call CLEAN) subdir_distclean: @@ -629,8 +631,10 @@ endif $(call DELFILE, include/nuttx/version.h) $(call DELFILE, Make.defs) $(call DELFILE, defconfig) + $(call DELFILE, defconfig.tmp-e) $(call DELFILE, .config) $(call DELFILE, .config.old) + $(call DELFILE, .config-e) $(call DELFILE, .gdbinit) $(Q) $(DIRUNLINK) include/arch/board $(Q) $(DIRUNLINK) include/arch/chip diff --git a/tools/Makefile.win b/tools/Makefile.win index 12f6d05704..1b987339b4 100644 --- a/tools/Makefile.win +++ b/tools/Makefile.win @@ -399,6 +399,7 @@ clean_context: $(Q) for %%G in ($(CCLEANDIRS)) do ( if exist %%G\Makefile $(MAKE) -C %%G TOPDIR="$(TOPDIR)" clean_context ) $(call DELFILE, include\nuttx\config.h) $(call DELFILE, include\nuttx\version.h) + $(call DELFILE, include\float.h) $(call DELFILE, include\math.h) $(call DELFILE, include\stdarg.h) $(call DELFILE, include\setjmp.h) @@ -590,6 +591,7 @@ clean: subdir_clean $(call DELFILE, nuttx_user*) $(call DELFILE, .gdbinit) $(call DELDIR, staging) + $(call DELFILE, uImage) $(call CLEAN) subdir_distclean: @@ -601,8 +603,10 @@ ifeq ($(CONFIG_BUILD_2PASS),y) endif $(call DELFILE, Make.defs) $(call DELFILE, defconfig) + $(call DELFILE, defconfig.tmp-e) $(call DELFILE, .config) $(call DELFILE, .config.old) + $(call DELFILE, .config-e) $(call DELDIR, include\arch\board) $(call DELDIR, include\arch\chip) $(call DELDIR, include\arch)