diff options
author | netchild <netchild@FreeBSD.org> | 2005-07-30 18:02:20 +0000 |
---|---|---|
committer | netchild <netchild@FreeBSD.org> | 2005-07-30 18:02:20 +0000 |
commit | 351201bb19dd89b65cdb303e9f4cbc76b57c3ccb (patch) | |
tree | ca0999b83b606879b0e4119182c7b9307584dc5f /Makefile.inc1 | |
parent | aa6ed9f702e89723e890a1b2ca19dc4875bd9c0e (diff) | |
download | FreeBSD-src-351201bb19dd89b65cdb303e9f4cbc76b57c3ccb.zip FreeBSD-src-351201bb19dd89b65cdb303e9f4cbc76b57c3ccb.tar.gz |
- 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.
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 d7d112a..c040678 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 + |