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/SIMIA32/compilers/GCC/rules.mk | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'os/common/startup/SIMIA32') diff --git a/os/common/startup/SIMIA32/compilers/GCC/rules.mk b/os/common/startup/SIMIA32/compilers/GCC/rules.mk index 600f8d5e9..1dfea462e 100644 --- a/os/common/startup/SIMIA32/compilers/GCC/rules.mk +++ b/os/common/startup/SIMIA32/compilers/GCC/rules.mk @@ -169,7 +169,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 @@ -182,6 +183,6 @@ gcov: # # 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) $(wildcard $(DEPDIR)/*) # *** EOF *** -- cgit v1.2.3