From d04ce79590b7fc7427267b5d7af30385b732ee44 Mon Sep 17 00:00:00 2001 From: patacongo Date: Thu, 10 Jan 2008 13:38:13 +0000 Subject: Clean operations are now toolchain specific git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@542 42af7a65-404d-4744-a932-0658087f49c3 --- nuttx/configs/c5471evm/Make.defs | 4 ++++ nuttx/configs/c5471evm/src/Makefile | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) (limited to 'nuttx/configs/c5471evm') diff --git a/nuttx/configs/c5471evm/Make.defs b/nuttx/configs/c5471evm/Make.defs index cda4d7208..bd44f0f7f 100644 --- a/nuttx/configs/c5471evm/Make.defs +++ b/nuttx/configs/c5471evm/Make.defs @@ -84,6 +84,10 @@ define ARCHIVE $(AR) $1 $2 || { echo "$(AR) $1 $2 FAILED!" ; exit 1 ; } endef +define CLEAN + @rm -f *.o *.a +endef + MKDEP = $(TOPDIR)/tools/mkdeps.sh HOSTCC = gcc diff --git a/nuttx/configs/c5471evm/src/Makefile b/nuttx/configs/c5471evm/src/Makefile index 4b0541ae1..9a05c0162 100644 --- a/nuttx/configs/c5471evm/src/Makefile +++ b/nuttx/configs/c5471evm/src/Makefile @@ -68,8 +68,8 @@ libboard$(LIBEXT): $(OBJS) depend: .depend clean: - rm -f libboard$(LIBEXT) *~ - if [ ! -z "$(OBJEXT)" ]; then rm -f *$(OBJEXT); fi + @rm -f libboard$(LIBEXT) *~ .*.swp + $(call CLEAN) distclean: clean rm -f Make.dep .depend -- cgit v1.2.3