clean=depends is naturally recursive, make a little dance so that it

goes to _internal-clean for itself.

found out by brad@
This commit is contained in:
espie 2004-07-21 14:45:33 +00:00
parent a5b5737d5d
commit 83b79dec6d

View File

@ -1,6 +1,6 @@
#-*- mode: Makefile; tab-width: 4; -*-
# ex:ts=4 sw=4 filetype=make:
# $OpenBSD: bsd.port.mk,v 1.624 2004/07/20 14:23:32 espie Exp $
# $OpenBSD: bsd.port.mk,v 1.625 2004/07/21 14:45:33 espie Exp $
# $FreeBSD: bsd.port.mk,v 1.264 1996/12/25 02:27:44 imp Exp $
# $NetBSD: bsd.port.mk,v 1.62 1998/04/09 12:47:02 hubertf Exp $
#
@ -1913,9 +1913,10 @@ _delete-package-links:
_internal-clean:
.if ${_clean:L:Mdepends} && ${_CLEANDEPENDS:L} == "yes"
@${MAKE} all-dir-depends|tsort -r|while read dir; do \
case "$$dir" in ${PKGPATH}) t=_internal-clean;; *) t=clean;; esac; \
unset FLAVOR SUBPACKAGE || true; \
${_flavor_fragment}; \
eval $$toset ${MAKE} _CLEANDEPENDS=No clean; \
eval $$toset ${MAKE} _CLEANDEPENDS=No $$t; \
done
.else
@${ECHO_MSG} "===> Cleaning for ${FULLPKGNAME${SUBPACKAGE}}"