From c709ed2464655bcc8072f424cfce7c60bf1b6d29 Mon Sep 17 00:00:00 2001 From: "chao.an" Date: Tue, 21 Jan 2020 15:51:05 +0800 Subject: [PATCH] tools/Makefile.unix and Makefile.won: In distclean target, unlink the dir after subdir clean Ensure the linked dir can be clean complete in multi-job case --- tools/Makefile.unix | 14 +++++++------- tools/Makefile.win | 14 +++++++------- 2 files changed, 14 insertions(+), 14 deletions(-) diff --git a/tools/Makefile.unix b/tools/Makefile.unix index b99b877c2d..917ea0dbdf 100644 --- a/tools/Makefile.unix +++ b/tools/Makefile.unix @@ -406,13 +406,6 @@ clean_context: $(call DELFILE, include/math.h) $(call DELFILE, include/stdarg.h) $(call DELFILE, include/setjmp.h) - $(Q) $(DIRUNLINK) include/arch/board - $(Q) $(DIRUNLINK) include/arch/chip - $(Q) $(DIRUNLINK) include/arch - $(Q) $(DIRUNLINK) $(ARCH_SRC)/board/board - $(Q) $(DIRUNLINK) $(ARCH_SRC)/board - $(Q) $(DIRUNLINK) $(ARCH_SRC)/chip - $(Q) $(DIRUNLINK) $(TOPDIR)/drivers/platform # check_context # @@ -668,6 +661,13 @@ endif $(call DELFILE, .config) $(call DELFILE, .config.old) $(call DELFILE, .gdbinit) + $(Q) $(DIRUNLINK) include/arch/board + $(Q) $(DIRUNLINK) include/arch/chip + $(Q) $(DIRUNLINK) include/arch + $(Q) $(DIRUNLINK) $(ARCH_SRC)/board/board + $(Q) $(DIRUNLINK) $(ARCH_SRC)/board + $(Q) $(DIRUNLINK) $(ARCH_SRC)/chip + $(Q) $(DIRUNLINK) $(TOPDIR)/drivers/platform # 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 aee011ca94..6ef5bdc65f 100644 --- a/tools/Makefile.win +++ b/tools/Makefile.win @@ -424,13 +424,6 @@ clean_context: $(call DELFILE, include\math.h) $(call DELFILE, include\stdarg.h) $(call DELFILE, include\setjmp.h) - $(call DELDIR, include\arch\board) - $(call DELDIR, include\arch\chip) - $(call DELDIR, include\arch) - $(call DELDIR, $(ARCH_SRC)\board\board) - $(call DELDIR, $(ARCH_SRC)\board) - $(call DELDIR, $(ARCH_SRC)\chip) - $(call DELDIR, $(TOPDIR)\drivers\platform) # check_context # @@ -645,6 +638,13 @@ endif $(call DELFILE, Make.defs) $(call DELFILE, .config) $(call DELFILE, .config.old) + $(call DELDIR, include\arch\board) + $(call DELDIR, include\arch\chip) + $(call DELDIR, include\arch) + $(call DELDIR, $(ARCH_SRC)\board\board) + $(call DELDIR, $(ARCH_SRC)\board) + $(call DELDIR, $(ARCH_SRC)\chip) + $(call DELDIR, $(TOPDIR)\drivers\platform) # Application housekeeping targets. The APPDIR variable refers to the user # application directory. A sample apps\ directory is included with NuttX,