aboutsummaryrefslogtreecommitdiffstats
path: root/Mk
diff options
context:
space:
mode:
authormat <mat@FreeBSD.org>2016-10-18 23:27:25 +0800
committermat <mat@FreeBSD.org>2016-10-18 23:27:25 +0800
commit0c61bb8ba9d9356f079708c2b9e5fc86656e4786 (patch)
tree088a107ae4eab3e466a573fcddd5b3d0a2c8a0e2 /Mk
parent3f4759399c6947822067445faabad09e9eedde91 (diff)
downloadfreebsd-ports-gnome-0c61bb8ba9d9356f079708c2b9e5fc86656e4786.tar.gz
freebsd-ports-gnome-0c61bb8ba9d9356f079708c2b9e5fc86656e4786.tar.zst
freebsd-ports-gnome-0c61bb8ba9d9356f079708c2b9e5fc86656e4786.zip
Make make clean be recursive again.
PR: 213188 Submitted by: tijl Exp-run by: antoine Sponsored by: Absolight
Diffstat (limited to 'Mk')
-rw-r--r--Mk/Scripts/depends-list.sh9
1 files changed, 4 insertions, 5 deletions
diff --git a/Mk/Scripts/depends-list.sh b/Mk/Scripts/depends-list.sh
index e6c6d6035e40..99175e2f3e70 100644
--- a/Mk/Scripts/depends-list.sh
+++ b/Mk/Scripts/depends-list.sh
@@ -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