summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorRuslan Ermilov <ru@FreeBSD.org>2002-11-28 13:08:09 +0000
committerRuslan Ermilov <ru@FreeBSD.org>2002-11-28 13:08:09 +0000
commit113cf9e649447590b70c59f103fd48a860e6c809 (patch)
treef8d79407c98a8e7dabbb3feef2f9111550ae7ba1 /Makefile
parent43b92fef626c219f759af893429c2b275993c19a (diff)
downloadsrc-test-113cf9e649447590b70c59f103fd48a860e6c809.tar.gz
src-test-113cf9e649447590b70c59f103fd48a860e6c809.zip
Moved make(1) regression tests from src/Makefile to where they
belong (src/tools/regression/usr.bin/make), and use the latter to test if make(1) is adequate for building the world. Approved by: re
Notes
Notes: svn path=/head/; revision=107374
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile32
1 files changed, 4 insertions, 28 deletions
diff --git a/Makefile b/Makefile
index 0f4dbbf03a61e..222e4ed76c6d8 100644
--- a/Makefile
+++ b/Makefile
@@ -156,39 +156,15 @@ kernel: buildkernel installkernel
#
# Perform a few tests to determine if the installed tools are adequate
-# for building the world. These are for older systems (prior to 2.2.5).
-#
-# From 2.2.5 onwards, the installed tools will pass these upgrade tests,
-# so the normal make world is capable of doing what is required to update
-# the system to current.
+# for building the world.
#
upgrade_checks:
- @cd ${.CURDIR}; \
- if ! make -m ${.CURDIR}/share/mk -Dnotdef test >/dev/null 2>&1; then \
- make make; \
- fi
- @cd ${.CURDIR}; \
- if make -V .CURDIR:C/.// 2>&1 >/dev/null | \
- grep -q "Unknown modifier 'C'"; then \
- make make; \
- fi
-
-#
-# A simple test target used as part of the test to see if make supports
-# 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
+ @(cd ${.CURDIR}/tools/regression/usr.bin/make && make 2>/dev/null) || \
+ (cd ${.CURDIR} && make make)
#
# Upgrade the installed make to the current version using the installed
-# headers, libraries and build tools. This is required on installed versions
-# prior to 2.2.5 in which the installed make doesn't support the -m argument.
+# headers, libraries and tools.
#
make:
@echo