tools:fix distclean error in Windows native build

This commit is contained in:
zouboan 2022-11-05 18:14:57 +08:00 committed by Xiang Xiao
parent def151869f
commit 5edb9141e4
4 changed files with 16 additions and 6 deletions

View File

@ -702,12 +702,12 @@ ifeq ($(CONFIG_ARCH_HAVE_BOOTLOADER),y)
$(Q) $(MAKE) clean_bootloader $(Q) $(MAKE) clean_bootloader
endif endif
$(Q) $(MAKE) clean_context $(Q) $(MAKE) clean_context
$(Q) $(MAKE) -C tools -f Makefile.host clean
$(call DELFILE, Make.defs) $(call DELFILE, Make.defs)
$(call DELFILE, defconfig) $(call DELFILE, defconfig)
$(call DELFILE, .config) $(call DELFILE, .config)
$(call DELFILE, .config.old) $(call DELFILE, .config.old)
$(call DELFILE, .gdbinit) $(call DELFILE, .gdbinit)
$(Q) $(MAKE) -C tools -f Makefile.host clean
# Application housekeeping targets. The APPDIR variable refers to the user # Application housekeeping targets. The APPDIR variable refers to the user
# application directory. A sample apps/ directory is included with NuttX, # application directory. A sample apps/ directory is included with NuttX,

View File

@ -661,11 +661,11 @@ ifeq ($(CONFIG_ARCH_HAVE_BOOTLOADER),y)
$(Q) $(MAKE) clean_bootloader $(Q) $(MAKE) clean_bootloader
endif endif
$(Q) $(MAKE) clean_context $(Q) $(MAKE) clean_context
$(Q) $(MAKE) -C tools -f Makefile.host clean
$(call DELFILE, Make.defs) $(call DELFILE, Make.defs)
$(call DELFILE, defconfig) $(call DELFILE, defconfig)
$(call DELFILE, .config) $(call DELFILE, .config)
$(call DELFILE, .config.old) $(call DELFILE, .config.old)
$(Q) $(MAKE) -C tools -f Makefile.host clean
# Application housekeeping targets. The APPDIR variable refers to the user # Application housekeeping targets. The APPDIR variable refers to the user
# application directory. A sample apps\ directory is included with NuttX, # application directory. A sample apps\ directory is included with NuttX,

View File

@ -18,6 +18,7 @@
# #
############################################################################ ############################################################################
include $(TOPDIR)/Make.defs
all: mkspk all: mkspk
default: mkspk default: mkspk
.PHONY: clean .PHONY: clean
@ -32,5 +33,9 @@ mkspk:
@gcc $(CFLAGS) -o mkspk mkspk.c clefia.c @gcc $(CFLAGS) -o mkspk mkspk.c clefia.c
clean: clean:
@rm -f *.o *.a *.dSYM *~ .*.swp ifneq ($(CONFIG_WINDOWS_NATIVE),y)
@rm -f mkspk mkspk.exe $(Q) rm -rf *.dSYM
endif
$(call DELFILE, mkspk)
$(call DELFILE, mkspk.exe)
$(call CLEAN)

View File

@ -18,6 +18,7 @@
# #
############################################################################ ############################################################################
include $(TOPDIR)/Make.defs
all: mkpichex all: mkpichex
default: mkpichex default: mkpichex
.PHONY: clean .PHONY: clean
@ -32,5 +33,9 @@ mkpichex: mkpichex.c
@gcc $(CFLAGS) -o mkpichex mkpichex.c @gcc $(CFLAGS) -o mkpichex mkpichex.c
clean: clean:
@rm -f *.o *.a *.dSYM *~ .*.swp ifneq ($(CONFIG_WINDOWS_NATIVE),y)
@rm -f mkpichex mkpichex.exe $(Q) rm -rf *.dSYM
endif
$(call DELFILE, mkpichex)
$(call DELFILE, mkpichex.exe)
$(call CLEAN)