summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorru <ru@FreeBSD.org>2002-07-20 10:00:10 +0000
committerru <ru@FreeBSD.org>2002-07-20 10:00:10 +0000
commitdbbb17f6a0aa7b5a2f86dccfc34aab5350e3d20c (patch)
tree24e0416cf2a296042b1457ed1383179a655334d2 /Makefile
parent4d0968418c8ad75963a9f53673a6725599d16a88 (diff)
downloadFreeBSD-src-dbbb17f6a0aa7b5a2f86dccfc34aab5350e3d20c.zip
FreeBSD-src-dbbb17f6a0aa7b5a2f86dccfc34aab5350e3d20c.tar.gz
Upgrade make(1) if not passing the ``.if defined(notdef) && ${notdef:U}''
test (revealed by bsd.lib.mk,v 1.134).
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile10
1 files changed, 8 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index db4a5c5..a25dd01 100644
--- a/Makefile
+++ b/Makefile
@@ -172,7 +172,7 @@ kernel: buildkernel installkernel
#
upgrade_checks:
@cd ${.CURDIR}; \
- if ! make -m ${.CURDIR}/share/mk test > /dev/null 2>&1; then \
+ if ! make -m ${.CURDIR}/share/mk -Dnotdef test >/dev/null 2>&1; then \
make make; \
fi
@cd ${.CURDIR}; \
@@ -183,9 +183,15 @@ upgrade_checks:
#
# A simple test target used as part of the test to see if make supports
-# the -m argument.
+# the -m argument. Also test that make will only evaluate a conditional
+# as far as is necessary to determine its value.
#
test:
+.if defined(notdef)
+.undef notdef
+.if defined(notdef) && ${notdef:U}
+.endif
+.endif
#
# Upgrade the installed make to the current version using the installed
OpenPOWER on IntegriCloud