From d7d7a6678605371cc41c009e66fce99d287d46bc Mon Sep 17 00:00:00 2001 From: SPRESENSE <41312067+SPRESENSE@users.noreply.github.com> Date: Thu, 14 Sep 2023 10:59:29 +0900 Subject: [PATCH] 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 b4f6101abfe9f..d2def3eb361db 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