From 7fe2867121e6a7c4882e416fc4d892254e8765d2 Mon Sep 17 00:00:00 2001 From: Giovanni Di Sirio Date: Wed, 11 Aug 2021 05:09:08 +0000 Subject: [PATCH] git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@14636 27425a3e-05d8-49a3-a47f-9c15f0e5edd8 --- os/common/startup/ARMCMx/compilers/GCC/mk/rules.mk | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/os/common/startup/ARMCMx/compilers/GCC/mk/rules.mk b/os/common/startup/ARMCMx/compilers/GCC/mk/rules.mk index 93b3de78b..4f7178de5 100644 --- a/os/common/startup/ARMCMx/compilers/GCC/mk/rules.mk +++ b/os/common/startup/ARMCMx/compilers/GCC/mk/rules.mk @@ -275,9 +275,9 @@ clean: CLEAN_RULE_HOOK @echo Cleaning @echo - $(DEPDIR) @-rm -fR $(DEPDIR)/* $(BUILDDIR)/* 2>/dev/null - @-if [ -d "$(DEPDIR)" ]; then rmdir -p $(subst ./,,$(DEPDIR)) 2>/dev/null; fi + @-if [ -d "$(DEPDIR)" ]; then rmdir -p --ignore-fail-on-non-empty $(subst ./,,$(DEPDIR)) 2>/dev/null; fi @echo - $(BUILDDIR) - @-if [ -d "$(BUILDDIR)" ]; then rmdir -p $(subst ./,,$(BUILDDIR)) 2>/dev/null; fi + @-if [ -d "$(BUILDDIR)" ]; then rmdir -p --ignore-fail-on-non-empty $(subst ./,,$(BUILDDIR)) 2>/dev/null; fi @echo @echo Done