Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 18 Oct 2016 15:27:25 +0000 (UTC)
From:      Mathieu Arnold <mat@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r424170 - head/Mk/Scripts
Message-ID:  <201610181527.u9IFRPSZ045247@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: mat
Date: Tue Oct 18 15:27:25 2016
New Revision: 424170
URL: https://svnweb.freebsd.org/changeset/ports/424170

Log:
  Make make clean be recursive again.
  
  PR:		213188
  Submitted by:	tijl
  Exp-run by:	antoine
  Sponsored by:	Absolight

Modified:
  head/Mk/Scripts/depends-list.sh   (contents, props changed)

Modified: head/Mk/Scripts/depends-list.sh
==============================================================================
--- head/Mk/Scripts/depends-list.sh	Tue Oct 18 15:02:39 2016	(r424169)
+++ head/Mk/Scripts/depends-list.sh	Tue Oct 18 15:27:25 2016	(r424170)
@@ -21,6 +21,8 @@ while getopts "mrw" FLAG; do
 		w)
 			# Only list dependencies that have a WRKDIR.  Used for
 			# 'make clean-depends'.
+			# Without -r recurse when WRKDIR exists; with -r
+			# always recurse.
 			requires_wrkdir=1
 			;;
 		*)
@@ -80,13 +82,10 @@ check_dep() {
 
 		# Grab any needed vars from the port.
 
-		if [ ${requires_wrkdir} -eq 1 -a ${recursive} -eq 1 ]; then
+		if [ ${requires_wrkdir} -eq 1 ]; then
 			set -- $(${dp_MAKE} -C ${d} -VWRKDIR -V_UNIFIED_DEPENDS)
 			wrkdir="$1"
 			shift
-		elif [ ${requires_wrkdir} -eq 1 -a ${recursive} -eq 0 ]; then
-			set -- "$(${dp_MAKE} -C ${d} -VWRKDIR)"
-			wrkdir="$1"
 		elif [ ${recursive} -eq 1 ]; then
 			set -- $(${dp_MAKE} -C ${d} -V_UNIFIED_DEPENDS)
 		fi
@@ -97,7 +96,7 @@ check_dep() {
 			show_dep=0
 		fi
 		[ ${show_dep} -eq 1 ] && echo ${d}
-		if [ ${recursive} -eq 1 ]; then
+		if [ ${recursive} -eq 1 -o ${requires_wrkdir} -eq 1 -a ${show_dep} -eq 1 ]; then
 			check_dep $@
 		fi
 	done



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201610181527.u9IFRPSZ045247>