- Only make the delete-old related parts visible if one of the 3 targets

are called (wrapped in ".if make(...)"). This may reduce the amount of
  memory needed for all other targets (the file lists are already large
  and they will grow further).
- Be verbose in the batch case of the delete-old part too.
This commit is contained in:
Alexander Leidinger 2005-07-30 18:02:20 +00:00
parent 648fd2bd0b
commit 1b24254bec

View File

@ -1051,6 +1051,8 @@ par-${__target}: ${SUBDIR:S/$/.${__target}__D/}
.include <bsd.subdir.mk>
.if make(delete-old) || make(delete-old-libs) || make(check-old)
#
# check for / delete old files section
#
@ -1064,6 +1066,8 @@ specific library."
.if !defined(BATCH_DELETE_OLD_FILES)
RM_I=-i
.else
RM_I=-v
.endif
delete-old-files:
@ -1142,3 +1146,5 @@ check-old: check-old-files check-old-libs check-old-dirs
@echo "To remove old files and directories run '${MAKE} delete-old'."
@echo "To remove old libraries run '${MAKE} delete-old-libs'."
.endif