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 2023/09/14 10:18:15 UTC

[nuttx] branch master updated: tools: Remove archive lock file in make distclean

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/nuttx.git


The following commit(s) were added to refs/heads/master by this push:
     new 1226f3ffef tools: Remove archive lock file in make distclean
1226f3ffef is described below

commit 1226f3ffef1020b2029f638f49d66fcef1f67212
Author: SPRESENSE <41...@users.noreply.github.com>
AuthorDate: Thu Sep 14 10:59:29 2023 +0900

    tools: Remove archive lock file in make distclean
    
    Remove temporary archive lock file (xxx.a.lock) by make distclean
    because the file may be generated by archive with flock command.
---
 tools/Config.mk | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/tools/Config.mk b/tools/Config.mk
index b4f6101abf..d2def3eb36 100644
--- a/tools/Config.mk
+++ b/tools/Config.mk
@@ -584,11 +584,12 @@ define CLEAN
 	$(Q) if exist (del /f /q  .*.swp)
 	$(call DELFILE,$(subst /,\,$(OBJS)))
 	$(Q) if exist $(BIN) (del /f /q  $(subst /,\,$(BIN)))
+	$(Q) if exist $(BIN).lock (del /f /q  $(subst /,\,$(BIN).lock))
 	$(Q) if exist $(EXTRA) (del /f /q  $(subst /,\,$(EXTRA)))
 endef
 else
 define CLEAN
-	$(Q) rm -f *$(OBJEXT) *$(LIBEXT) *~ .*.swp $(OBJS) $(BIN) $(EXTRA)
+	$(Q) rm -f *$(OBJEXT) *$(LIBEXT) *~ .*.swp $(OBJS) $(BIN) $(BIN).lock $(EXTRA)
 endef
 endif