From e018309e471def521b99445c378a829544adaeea Mon Sep 17 00:00:00 2001 From: Ouss4 Date: Sun, 31 May 2020 01:00:17 +0100 Subject: [PATCH] tools/Makefile*: Clean tools binaries at the end of distclean. --- tools/Makefile.host | 4 ++-- tools/Makefile.unix | 2 +- tools/Makefile.win | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/tools/Makefile.host b/tools/Makefile.host index 249b380c13..bb87ed9158 100644 --- a/tools/Makefile.host +++ b/tools/Makefile.host @@ -285,10 +285,10 @@ clean: $(call DELFILE, nxstyle.exe) $(call DELFILE, rmcr) $(call DELFILE, rmcr.exe) - $(call DELFILE, incdir) - $(call DELFILE, incdir.exe) ifneq ($(CONFIG_WINDOWS_NATIVE),y) $(Q) rm -rf *.dSYM endif $(Q) $(MAKE) -C pic32 -f Makefile.host TOPDIR="$(TOPDIR)" clean + $(call DELFILE, incdir) + $(call DELFILE, incdir.exe) $(call CLEAN) diff --git a/tools/Makefile.unix b/tools/Makefile.unix index f689d5c82b..8a69b54ffc 100644 --- a/tools/Makefile.unix +++ b/tools/Makefile.unix @@ -523,7 +523,6 @@ depend: pass1dep pass2dep $(foreach SDIR, $(CLEANDIRS), $(eval $(call SDIR_template,$(SDIR),clean))) subdir_clean: $(foreach SDIR, $(CLEANDIRS), $(SDIR)_clean) - $(Q) $(MAKE) -C tools -f Makefile.host TOPDIR="$(TOPDIR)" clean ifeq ($(CONFIG_BUILD_2PASS),y) $(Q) $(MAKE) -C $(CONFIG_PASS1_BUILDIR) TOPDIR="$(TOPDIR)" clean endif @@ -563,6 +562,7 @@ endif $(Q) $(DIRUNLINK) $(ARCH_SRC)/board $(Q) $(DIRUNLINK) $(ARCH_SRC)/chip $(Q) $(DIRUNLINK) $(TOPDIR)/drivers/platform + $(Q) $(MAKE) -C tools -f Makefile.host TOPDIR="$(TOPDIR)" clean # Application housekeeping targets. The APPDIR variable refers to the user # application directory. A sample apps/ directory is included with NuttX, diff --git a/tools/Makefile.win b/tools/Makefile.win index fdc10cf433..0d77231636 100644 --- a/tools/Makefile.win +++ b/tools/Makefile.win @@ -479,7 +479,6 @@ depend: pass1dep pass2dep $(foreach SDIR, $(CLEANDIRS), $(eval $(call SDIR_template,$(SDIR),clean))) subdir_clean: $(foreach SDIR, $(CLEANDIRS), $(SDIR)_clean) - $(Q) $(MAKE) -C tools -f Makefile.host TOPDIR="$(TOPDIR)" clean ifeq ($(CONFIG_BUILD_2PASS),y) $(Q) $(MAKE) -C $(CONFIG_PASS1_BUILDIR) TOPDIR="$(TOPDIR)" clean endif @@ -518,6 +517,7 @@ endif $(call DIRUNLINK, $(ARCH_SRC)\board) $(call DIRUNLINK, $(ARCH_SRC)\chip) $(call DIRUNLINK, $(TOPDIR)\drivers\platform) + $(Q) $(MAKE) -C tools -f Makefile.host TOPDIR="$(TOPDIR)" clean # Application housekeeping targets. The APPDIR variable refers to the user # application directory. A sample apps\ directory is included with NuttX,