diff options
Diffstat (limited to 'nuttx/arch')
-rw-r--r-- | nuttx/arch/arm/src/Makefile | 4 | ||||
-rw-r--r-- | nuttx/arch/c5471/src/Makefile | 3 | ||||
-rw-r--r-- | nuttx/arch/dm320/src/Makefile | 5 | ||||
-rw-r--r-- | nuttx/arch/pjrc-8051/src/Makefile | 5 | ||||
-rw-r--r-- | nuttx/arch/sim/src/Makefile | 4 | ||||
-rw-r--r-- | nuttx/arch/z16/src/Makefile | 4 | ||||
-rw-r--r-- | nuttx/arch/z80/src/Makefile | 6 |
7 files changed, 15 insertions, 16 deletions
diff --git a/nuttx/arch/arm/src/Makefile b/nuttx/arch/arm/src/Makefile index 445577b4a..9e6bda77c 100644 --- a/nuttx/arch/arm/src/Makefile +++ b/nuttx/arch/arm/src/Makefile @@ -111,8 +111,8 @@ clean: @if [ -e board/Makefile ]; then \ $(MAKE) -C board TOPDIR="$(TOPDIR)" clean ; \ fi - @rm -f libarch$(LIBEXT) *~ - @if [ ! -z "$(OBJEXT)" ]; then rm -f *$(OBJEXT); fi + @rm -f libarch$(LIBEXT) *~ .*.swp + $(call CLEAN) distclean: clean @if [ -e board/Makefile ]; then \ diff --git a/nuttx/arch/c5471/src/Makefile b/nuttx/arch/c5471/src/Makefile index c04d9a9a6..1e7933b8f 100644 --- a/nuttx/arch/c5471/src/Makefile +++ b/nuttx/arch/c5471/src/Makefile @@ -113,7 +113,8 @@ clean: @if [ -e board/Makefile ]; then \ $(MAKE) -C board TOPDIR=$(TOPDIR) clean ; \ fi - rm -f libarch$(LIBEXT) *.o *.obj *~ + @rm -f libarch$(LIBEXT) *~ .*.swp + $(call CLEAN) distclean: clean @if [ -e board/Makefile ]; then \ diff --git a/nuttx/arch/dm320/src/Makefile b/nuttx/arch/dm320/src/Makefile index 41b9a90ab..8ce53aa74 100644 --- a/nuttx/arch/dm320/src/Makefile +++ b/nuttx/arch/dm320/src/Makefile @@ -113,12 +113,13 @@ clean: @if [ -e board/Makefile ]; then \ $(MAKE) -C board TOPDIR=$(TOPDIR) clean ; \ fi - rm -f libarch$(LIBEXT) *.o *.obj *~ + @rm -f libarch$(LIBEXT) *~ .*.swp + $(call CLEAN) distclean: clean @if [ -e board/Makefile ]; then \ $(MAKE) -C board TOPDIR=$(TOPDIR) distclean ; \ fi - rm -f Make.dep .depend + @rm -f Make.dep .depend -include Make.dep diff --git a/nuttx/arch/pjrc-8051/src/Makefile b/nuttx/arch/pjrc-8051/src/Makefile index 5d95b2f78..d77bf546d 100644 --- a/nuttx/arch/pjrc-8051/src/Makefile +++ b/nuttx/arch/pjrc-8051/src/Makefile @@ -211,9 +211,8 @@ clean: @if [ -e board/Makefile ]; then \ $(MAKE) -C board TOPDIR=$(TOPDIR) clean ; \ fi - rm -f libarch$(LIBEXT) up_mem.h - rm -f *.asm *.rel *.lst *.rst *.sym *.adb *.lnk *.map *.mem *.ihx *.hex *~ - if [ ! -z "$(OBJEXT)" ]; then rm -f *$(OBJEXT); fi + @rm -f libarch$(LIBEXT) up_mem.h *~ .*.swp + $(call CLEAN) distclean: clean @if [ -e board/Makefile ]; then \ diff --git a/nuttx/arch/sim/src/Makefile b/nuttx/arch/sim/src/Makefile index c31c4e17e..ea92eb50c 100644 --- a/nuttx/arch/sim/src/Makefile +++ b/nuttx/arch/sim/src/Makefile @@ -101,8 +101,8 @@ nuttx$(EXEEXT): $(LINKOBJS) depend: .depend clean: - @rm -f libarch$(LIBEXT) *~ - @if [ ! -z "$(OBJEXT)" ]; then rm -f *$(OBJEXT); fi + @rm -f libarch$(LIBEXT) *~ .*.swp + $(call CLEAN) distclean: clean @rm -f Make.dep .depend diff --git a/nuttx/arch/z16/src/Makefile b/nuttx/arch/z16/src/Makefile index 2ce3a3013..cd0692447 100644 --- a/nuttx/arch/z16/src/Makefile +++ b/nuttx/arch/z16/src/Makefile @@ -99,8 +99,8 @@ clean: @if [ -e board/Makefile ]; then \ $(MAKE) -C board TOPDIR="$(TOPDIR)" clean ; \ fi - @rm -f libarch$(LIBEXT) *~ - @if [ ! -z "$(OBJEXT)" ]; then rm -f *$(OBJEXT); fi + @rm -f libarch$(LIBEXT) *~ .*.swp + $(call CLEAN) distclean: clean @if [ -e board/Makefile ]; then \ diff --git a/nuttx/arch/z80/src/Makefile b/nuttx/arch/z80/src/Makefile index 2c1f15c99..9f5e752d4 100644 --- a/nuttx/arch/z80/src/Makefile +++ b/nuttx/arch/z80/src/Makefile @@ -234,10 +234,8 @@ clean: @if [ -e board/Makefile ]; then \ $(MAKE) -C board TOPDIR="$(TOPDIR)" clean ; \ fi - rm -f libarch$(LIBEXT) up_mem.h asm_mem.h pass1.* nuttx.* - rm -f *.asm *.rel *.lst *.rst *.sym *.adb *.lnk *.map *.mem *.ihx *.hex - rm -f core *~ .*.swp *.swp - if [ ! -z "$(OBJEXT)" ]; then rm -f *$(OBJEXT); fi + @rm -f libarch$(LIBEXT) up_mem.h asm_mem.h pass1.* nuttx.* *~ .*.swp + $(call CLEAN) distclean: clean @if [ -e board/Makefile ]; then \ |