diff options
-rw-r--r-- | mk/bsd.prefs.mk | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/mk/bsd.prefs.mk b/mk/bsd.prefs.mk index 16ff0fa956d..32eecf1fa78 100644 --- a/mk/bsd.prefs.mk +++ b/mk/bsd.prefs.mk @@ -1,4 +1,4 @@ -# $NetBSD: bsd.prefs.mk,v 1.172 2004/10/07 03:03:09 jlam Exp $ +# $NetBSD: bsd.prefs.mk,v 1.173 2004/10/07 13:42:26 jlam Exp $ # # Make file, included to get the site preferences, if any. Should # only be included by package Makefiles before any .if defined() @@ -464,10 +464,11 @@ PKG_FAIL_REASON+= 'for more details.' .endif PKGPATH?= ${.CURDIR:C|.*/([^/]*/[^/]*)$|\1|} -.if !defined(PKGSRCDIR) -PKGSRCDIR!= cd ${_PKGSRC_TOPDIR} && ${PWD_CMD} -MAKEFLAGS+= PKGSRCDIR=${PKGSRCDIR:Q} +.if !defined(_PKGSRCDIR) +_PKGSRCDIR!= cd ${_PKGSRC_TOPDIR} && ${PWD_CMD} +MAKEFLAGS+= _PKGSRCDIR=${_PKGSRCDIR:Q} .endif +PKGSRCDIR= ${_PKGSRCDIR} DISTDIR?= ${PKGSRCDIR}/distfiles PACKAGES?= ${PKGSRCDIR}/packages |