diff options
author | Alexander Leidinger <netchild@FreeBSD.org> | 2005-07-30 18:02:20 +0000 |
---|---|---|
committer | Alexander Leidinger <netchild@FreeBSD.org> | 2005-07-30 18:02:20 +0000 |
commit | 1b24254bec706ccb308ef51d3f95067f93fe3d41 (patch) | |
tree | ca0999b83b606879b0e4119182c7b9307584dc5f /Makefile.inc1 | |
parent | 648fd2bd0b293dbf149103260b1d7296cbf653bd (diff) | |
download | src-test2-1b24254bec706ccb308ef51d3f95067f93fe3d41.tar.gz src-test2-1b24254bec706ccb308ef51d3f95067f93fe3d41.zip |
- 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.
Notes
Notes:
svn path=/head/; revision=148571
Diffstat (limited to 'Makefile.inc1')
-rw-r--r-- | Makefile.inc1 | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Makefile.inc1 b/Makefile.inc1 index d7d112a610a9..c0406787ee53 100644 --- a/Makefile.inc1 +++ b/Makefile.inc1 @@ -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 + |