From f1e3e67038fc170f4328e977a1e6f862763ff2d3 Mon Sep 17 00:00:00 2001 From: jlam Date: Thu, 18 Aug 2005 19:24:15 +0000 Subject: INSTALLATION_DIRS implies NO_MTREE: If a package sets INSTALLATION_DIRS, then it's known to pre-create all of the directories that it needs at install-time, so we don't need mtree to do it for us. --- mk/bsd.pkg.mk | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'mk') diff --git a/mk/bsd.pkg.mk b/mk/bsd.pkg.mk index e328f58b371..f61c6da3c32 100644 --- a/mk/bsd.pkg.mk +++ b/mk/bsd.pkg.mk @@ -1,4 +1,4 @@ -# $NetBSD: bsd.pkg.mk,v 1.1716 2005/08/15 17:35:45 jlam Exp $ +# $NetBSD: bsd.pkg.mk,v 1.1717 2005/08/18 19:24:15 jlam Exp $ # # This file is in the public domain. # @@ -151,6 +151,14 @@ SVR4_PKGNAME?= ${PKGNAME} USE_DIGEST?= YES WRKSRC?= ${WRKDIR}/${DISTNAME} +# If a package sets INSTALLATION_DIRS, then it's known to pre-create all +# of the directories that it needs at install-time, so we don't need +# mtree to do it for us. +# +.if defined(INSTALLATION_DIRS) && !empty(INSTALLATION_DIRS) +NO_MTREE= yes +.endif + .if (defined(INSTALL_UNSTRIPPED) && !empty(INSTALL_UNSTRIPPED:M[yY][eE][sS])) || defined(DEBUG_FLAGS) _INSTALL_UNSTRIPPED= # set (flag used by platform/*.mk) .endif -- cgit v1.2.3