From 351201bb19dd89b65cdb303e9f4cbc76b57c3ccb Mon Sep 17 00:00:00 2001 From: netchild Date: Sat, 30 Jul 2005 18:02:20 +0000 Subject: - 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. --- Makefile.inc1 | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'Makefile.inc1') 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 +.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 + -- cgit v1.1