summaryrefslogtreecommitdiff
path: root/mk/bsd.prefs.mk
diff options
context:
space:
mode:
authorrillig <rillig>2005-05-14 01:51:52 +0000
committerrillig <rillig>2005-05-14 01:51:52 +0000
commite54eaafac2f5c9bf4c9093f1388f027f36dcbdaa (patch)
treecac9ee7e179d8de3dff130ba0c31d50963afac76 /mk/bsd.prefs.mk
parent4fb057f006949471c680837547d6b1f188b7f787 (diff)
downloadpkgsrc-e54eaafac2f5c9bf4c9093f1388f027f36dcbdaa.tar.gz
Replaced .ifdef with .if defined() and .ifnded with .if !defined(). This
will allow better error checking.
Diffstat (limited to 'mk/bsd.prefs.mk')
-rw-r--r--mk/bsd.prefs.mk12
1 files changed, 6 insertions, 6 deletions
diff --git a/mk/bsd.prefs.mk b/mk/bsd.prefs.mk
index c6bc613378c..59e16b9c9ac 100644
--- a/mk/bsd.prefs.mk
+++ b/mk/bsd.prefs.mk
@@ -1,4 +1,4 @@
-# $NetBSD: bsd.prefs.mk,v 1.191 2005/05/13 17:22:43 jlam Exp $
+# $NetBSD: bsd.prefs.mk,v 1.192 2005/05/14 01:51:52 rillig Exp $
#
# Make file, included to get the site preferences, if any. Should
# only be included by package Makefiles before any .if defined()
@@ -7,7 +7,7 @@
# the system defaults (sys.mk and bsd.own.mk) are used.
# Do not recursively include mk.conf, redefine OPSYS, include bsd.own.mk, etc.
-.ifndef BSD_PKG_MK
+.if !defined(BSD_PKG_MK)
# Let mk.conf know that this is pkgsrc.
BSD_PKG_MK=1
@@ -45,14 +45,14 @@ CUT=/bin/cut
CUT=echo Unknown
.endif
-.ifndef OPSYS
+.if !defined(OPSYS)
OPSYS!= ${UNAME} -s | tr -d /
.endif
MAKEFLAGS+= OPSYS=${OPSYS}
-.ifndef OS_VERSION
+.if !defined(OS_VERSION)
OS_VERSION!= ${UNAME} -r
.endif
-.ifndef LOWER_OS_VERSION
+.if !defined(LOWER_OS_VERSION)
LOWER_OS_VERSION!= echo ${OS_VERSION} | tr 'A-Z' 'a-z'
.endif
MAKEFLAGS+= OS_VERSION=${OS_VERSION}
@@ -439,7 +439,7 @@ COMPILER_RPATH_FLAG?= ${_COMPILER_RPATH_FLAG}
WHOLE_ARCHIVE_FLAG?= ${_OPSYS_WHOLE_ARCHIVE_FLAG}
NO_WHOLE_ARCHIVE_FLAG?= ${_OPSYS_NO_WHOLE_ARCHIVE_FLAG}
-.ifndef DIGEST
+.if !defined(DIGEST)
DIGEST:= ${LOCALBASE}/bin/digest
MAKEFLAGS+= DIGEST=${DIGEST}
.endif