You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by xi...@apache.org on 2020/10/25 15:28:39 UTC

[incubator-nuttx] branch master updated: Add $(OBJS) and $(BIN) to CLEAN macro to clean objects also in subdirectories

This is an automated email from the ASF dual-hosted git repository.

xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx.git


The following commit(s) were added to refs/heads/master by this push:
     new 04e8207  Add $(OBJS) and $(BIN) to CLEAN macro to clean objects also in subdirectories
04e8207 is described below

commit 04e8207e20fcd06625670b39e82dfcf74388e648
Author: Matias N <ma...@protobits.dev>
AuthorDate: Sat Oct 24 23:27:31 2020 -0300

    Add $(OBJS) and $(BIN) to CLEAN macro to clean objects also in subdirectories
---
 tools/Config.mk | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/tools/Config.mk b/tools/Config.mk
index 9c261bf..5d41186 100644
--- a/tools/Config.mk
+++ b/tools/Config.mk
@@ -471,10 +471,12 @@ define CLEAN
 	$(Q) if exist *$(LIBEXT) (del /f /q *$(LIBEXT))
 	$(Q) if exist *~ (del /f /q *~)
 	$(Q) if exist (del /f /q  .*.swp)
+	$(Q) if exist $(OBJS) (del /f /q $(OBJS))
+	$(Q) if exist $(BIN) (del /f /q  $(BIN))
 endef
 else
 define CLEAN
-	$(Q) rm -f *$(OBJEXT) *$(LIBEXT) *~ .*.swp
+	$(Q) rm -f *$(OBJEXT) *$(LIBEXT) *~ .*.swp $(OBJS) $(BIN)
 endef
 endif