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.
This commit is contained in:
jlam 2001-12-26 19:16:59 +00:00
parent 99d556beb9
commit e023ba1995

View file

@ -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