diff options
-rw-r--r-- | os/common/startup/ARM/compilers/GCC/rules.mk | 4 | ||||
-rw-r--r-- | os/common/startup/ARMCMx/compilers/GCC/rules.mk | 4 | ||||
-rw-r--r-- | os/common/startup/SIMIA32/compilers/GCC/rules.mk | 4 | ||||
-rw-r--r-- | os/common/startup/e200/compilers/GCC/rules.mk | 4 |
4 files changed, 12 insertions, 4 deletions
diff --git a/os/common/startup/ARM/compilers/GCC/rules.mk b/os/common/startup/ARM/compilers/GCC/rules.mk index 7c068d588..f66daa520 100644 --- a/os/common/startup/ARM/compilers/GCC/rules.mk +++ b/os/common/startup/ARM/compilers/GCC/rules.mk @@ -298,12 +298,14 @@ $(BUILDDIR)/lib$(PROJECT).a: $(OBJS) @echo
@echo Done
-clean:
+clean: CLEAN_RULE_HOOK
@echo Cleaning
-rm -fR .dep $(BUILDDIR)
@echo
@echo Done
+CLEAN_RULE_HOOK:
+
#
# Include the dependency files, should be the last of the makefile
#
diff --git a/os/common/startup/ARMCMx/compilers/GCC/rules.mk b/os/common/startup/ARMCMx/compilers/GCC/rules.mk index 05d782732..3c0857042 100644 --- a/os/common/startup/ARMCMx/compilers/GCC/rules.mk +++ b/os/common/startup/ARMCMx/compilers/GCC/rules.mk @@ -304,12 +304,14 @@ $(BUILDDIR)/lib$(PROJECT).a: $(OBJS) @echo
@echo Done
-clean:
+clean: CLEAN_RULE_HOOK
@echo Cleaning
-rm -fR .dep $(BUILDDIR)
@echo
@echo Done
+CLEAN_RULE_HOOK:
+
#
# Include the dependency files, should be the last of the makefile
#
diff --git a/os/common/startup/SIMIA32/compilers/GCC/rules.mk b/os/common/startup/SIMIA32/compilers/GCC/rules.mk index 01577c2da..1a77dee9e 100644 --- a/os/common/startup/SIMIA32/compilers/GCC/rules.mk +++ b/os/common/startup/SIMIA32/compilers/GCC/rules.mk @@ -159,12 +159,14 @@ $(BUILDDIR)/lib$(PROJECT).a: $(OBJS) @echo
@echo Done
-clean:
+clean: CLEAN_RULE_HOOK
@echo Cleaning
-rm -fR .dep $(BUILDDIR)
@echo
@echo Done
+CLEAN_RULE_HOOK:
+
.PHONY: gcov
gcov:
$(COV) -u -b -o $(BUILDDIR)/obj $(GCOVSRC)
diff --git a/os/common/startup/e200/compilers/GCC/rules.mk b/os/common/startup/e200/compilers/GCC/rules.mk index 7bfb8d348..c84ebc66f 100644 --- a/os/common/startup/e200/compilers/GCC/rules.mk +++ b/os/common/startup/e200/compilers/GCC/rules.mk @@ -229,12 +229,14 @@ $(BUILDDIR)/lib$(PROJECT).a: $(OBJS) @echo
@echo Done
-clean:
+clean: CLEAN_RULE_HOOK
@echo Cleaning
-rm -fR .dep $(BUILDDIR)
@echo
@echo Done
+CLEAN_RULE_HOOK:
+
#
# Include the dependency files, should be the last of the makefile
#
|