summaryrefslogtreecommitdiff
path: root/mk/bsd.prefs.mk
diff options
context:
space:
mode:
authorjlam <jlam@pkgsrc.org>2004-10-06 20:59:40 +0000
committerjlam <jlam@pkgsrc.org>2004-10-06 20:59:40 +0000
commitf8946737f1b84503239dface55031fb3c19331be (patch)
tree496796ec7583af1163401ad9bf0dd5e1023628ab /mk/bsd.prefs.mk
parentdffc19378a3500a7dcfff207ba9dff3a66264901 (diff)
downloadpkgsrc-f8946737f1b84503239dface55031fb3c19331be.tar.gz
Climb up the directory tree to find the top, instead of guessing where
the top and searching on the way down. Thanks Gavan!
Diffstat (limited to 'mk/bsd.prefs.mk')
-rw-r--r--mk/bsd.prefs.mk10
1 files changed, 5 insertions, 5 deletions
diff --git a/mk/bsd.prefs.mk b/mk/bsd.prefs.mk
index 5dd150dc60b..db196d0cee2 100644
--- a/mk/bsd.prefs.mk
+++ b/mk/bsd.prefs.mk
@@ -1,4 +1,4 @@
-# $NetBSD: bsd.prefs.mk,v 1.169 2004/10/06 20:51:47 jlam Exp $
+# $NetBSD: bsd.prefs.mk,v 1.170 2004/10/06 20:59:40 jlam Exp $
#
# Make file, included to get the site preferences, if any. Should
# only be included by package Makefiles before any .if defined()
@@ -213,12 +213,12 @@ OBJECT_FMT?= a.out
.endif
# Calculate depth
-.if exists(${.CURDIR}/../../mk/bsd.pkg.mk)
-PKGSRC_TOPDIR= ${.CURDIR}/../..
+.if exists(${.CURDIR}/mk/bsd.pkg.mk)
+PKGSRC_TOPDIR= ${.CURDIR}
.elif exists(${.CURDIR}/../mk/bsd.pkg.mk)
PKGSRC_TOPDIR= ${.CURDIR}/..
-.elif exists(${.CURDIR}/mk/bsd.pkg.mk)
-PKGSRC_TOPDIR= ${.CURDIR}
+.elif exists(${.CURDIR}/../../mk/bsd.pkg.mk)
+PKGSRC_TOPDIR= ${.CURDIR}/../..
.endif
# include the defaults file