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.
This commit is contained in:
SPRESENSE 2023-09-14 10:59:29 +09:00 committed by Xiang Xiao
parent 5439275293
commit 1226f3ffef

View File

@ -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