diff options
author | Giovanni Di Sirio <gdisirio@gmail.com> | 2017-01-12 10:44:18 +0000 |
---|---|---|
committer | Giovanni Di Sirio <gdisirio@gmail.com> | 2017-01-12 10:44:18 +0000 |
commit | d7a0be7d7fd89d7fa3715705e4014547337d0eb9 (patch) | |
tree | a8e33514e452b7e93db5afa53ecd2b8f37ff2443 | |
parent | 0db56fc105f39b7652254199e754fba58bb3b1f6 (diff) | |
download | ChibiOS-d7a0be7d7fd89d7fa3715705e4014547337d0eb9.tar.gz ChibiOS-d7a0be7d7fd89d7fa3715705e4014547337d0eb9.tar.bz2 ChibiOS-d7a0be7d7fd89d7fa3715705e4014547337d0eb9.zip |
Makefiles clean rule hook added.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@10037 35acf78f-673a-0410-8e92-d51de3d6d3f4
-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
#
|