summaryrefslogtreecommitdiff
path: root/mk/bsd.prefs.mk
diff options
context:
space:
mode:
authorjlam <jlam@pkgsrc.org>2001-12-26 19:16:59 +0000
committerjlam <jlam@pkgsrc.org>2001-12-26 19:16:59 +0000
commite023ba19952dc2bc091ced093577d8edd5116b60 (patch)
tree0936961afc2dd4a3f7c1391e1f1b98b279ffb712 /mk/bsd.prefs.mk
parent99d556beb93617b39f782c2248be1f3ad4de6539 (diff)
downloadpkgsrc-e023ba19952dc2bc091ced093577d8edd5116b60.tar.gz
Define a symbol BSD_PREFS_MK that may be checked by Makefile fragments to
see whether they are being included from within bsd.prefs.mk or from without.
Diffstat (limited to 'mk/bsd.prefs.mk')
-rw-r--r--mk/bsd.prefs.mk14
1 files changed, 13 insertions, 1 deletions
diff --git a/mk/bsd.prefs.mk b/mk/bsd.prefs.mk
index 23f0854769d..006e81ae295 100644
--- a/mk/bsd.prefs.mk
+++ b/mk/bsd.prefs.mk
@@ -1,4 +1,4 @@
-# $NetBSD: bsd.prefs.mk,v 1.68 2001/12/24 19:29:32 jlam Exp $
+# $NetBSD: bsd.prefs.mk,v 1.69 2001/12/26 19:16:59 jlam Exp $
#
# Make file, included to get the site preferences, if any. Should
# only be included by package Makefiles before any .if defined()
@@ -13,6 +13,14 @@
BSD_PKG_MK=1
__PREFIX_SET__:=${PREFIX}
+# Define a symbol BSD_PREFS_MK that may be checked by Makefile fragments to
+# test whether they are being included from within bsd.prefs.mk or from
+# without.
+#
+.ifndef BSD_PREFS_MK
+BSD_PREFS_MK=1
+.endif
+
.if exists(/usr/bin/uname)
UNAME=/usr/bin/uname
.elif exists(/bin/uname)
@@ -282,4 +290,8 @@ MAKEFLAGS+= ZOULARIS_VERSION="${ZOULARIS_VERSION}"
.include "../../mk/pthread.buildlink.mk"
.endif
+.ifdef BSD_PREFS_MK
+.undef BSD_PREFS_MK
+.endif
+
.endif # BSD_PKG_MK