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
endif
$(Q) $(MAKE) clean_context
$(Q) $(MAKE) -C tools -f Makefile.host clean
$(call DELFILE, Make.defs)
$(call DELFILE, defconfig)
$(call DELFILE, .config)
$(call DELFILE, .config.old)
$(call DELFILE, .gdbinit)
$(Q) $(MAKE) -C tools -f Makefile.host clean
# Application housekeeping targets. The APPDIR variable refers to the user
# 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
endif
$(Q) $(MAKE) clean_context
$(Q) $(MAKE) -C tools -f Makefile.host clean
$(call DELFILE, Make.defs)
$(call DELFILE, defconfig)
$(call DELFILE, .config)
$(call DELFILE, .config.old)
$(Q) $(MAKE) -C tools -f Makefile.host clean
# Application housekeeping targets. The APPDIR variable refers to the user
# application directory. A sample apps\ directory is included with NuttX,

View File

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