From c706f5f20deabd680106ecaaf8047a03cf1d02ef Mon Sep 17 00:00:00 2001 From: Giovanni Di Sirio Date: Tue, 13 Mar 2018 14:06:05 +0000 Subject: git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@11729 110e8d01-0319-4d1e-a829-52ad28d1bb01 --- os/common/startup/ARM/compilers/GCC/rules.mk | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'os/common/startup/ARM/compilers/GCC/rules.mk') diff --git a/os/common/startup/ARM/compilers/GCC/rules.mk b/os/common/startup/ARM/compilers/GCC/rules.mk index 0b98a5334..e8ffb1c49 100644 --- a/os/common/startup/ARM/compilers/GCC/rules.mk +++ b/os/common/startup/ARM/compilers/GCC/rules.mk @@ -308,7 +308,8 @@ $(BUILDDIR)/lib$(PROJECT).a: $(OBJS) clean: CLEAN_RULE_HOOK @echo Cleaning - -rm -fR $(DEPDIR) $(BUILDDIR) + -rm -fR $(DEPDIR)/* $(BUILDDIR)/* 2>/dev/null + -rmdir -p --ignore-fail-on-non-empty $(subst ./,,$(DEPDIR)) $(subst ./,,$(BUILDDIR)) 2>/dev/null @echo @echo Done @@ -317,6 +318,6 @@ CLEAN_RULE_HOOK: # # Include the dependency files, should be the last of the makefile # --include $(shell mkdir $(DEPDIR) 2>/dev/null) $(wildcard $(DEPDIR)/*) +-include $(shell mkdir -p $(DEPDIR) 2>/dev/null) # *** EOF *** -- cgit v1.2.3