Add $(OBJS) and $(BIN) to CLEAN macro to clean objects also in subdirectories

This commit is contained in:
Matias N 2020-10-24 23:27:31 -03:00 committed by Xiang Xiao
parent aabb30a103
commit 04e8207e20

View File

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