summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorimp <imp@FreeBSD.org>2007-12-11 20:00:55 +0000
committerimp <imp@FreeBSD.org>2007-12-11 20:00:55 +0000
commitaec3ebc7918d314718caf8136652800c934c9470 (patch)
treeb66dc99a970edd3dcb00c878a9e7fb2b3006dfa8 /Makefile
parent042cca2ff9a2db59d4fd924f4d6e126e57b0d905 (diff)
downloadFreeBSD-src-aec3ebc7918d314718caf8136652800c934c9470.zip
FreeBSD-src-aec3ebc7918d314718caf8136652800c934c9470.tar.gz
Don't assume that make(1) is a bsd-like make program. It might not be. This
only matters in the early stages of bootstrapping, of course, but gnu make can't handle bsd make Makefiles at all if they use any of the 'dot' directives, which src/Makefile has in abudnance.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile8
1 files changed, 5 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 77d68e5..25da881 100644
--- a/Makefile
+++ b/Makefile
@@ -234,17 +234,19 @@ upgrade_checks:
PATH=${PATH} ${BINMAKE} obj >/dev/null 2>&1 && \
PATH=${PATH} ${BINMAKE} >/dev/null 2>&1); \
then \
- (cd ${.CURDIR} && make make); \
+ (cd ${.CURDIR} && ${BSDMAKE} make); \
fi
#
# Upgrade make(1) to the current version using the installed
-# headers, libraries and tools.
+# headers, libraries and tools. Also, allow the location of
+# the system bsdmake-like utility to be overridden.
#
+BSDMAKE?=make
MMAKEENV= MAKEOBJDIRPREFIX=${MAKEPATH} \
DESTDIR= \
INSTALL="sh ${.CURDIR}/tools/install.sh"
-MMAKE= ${MMAKEENV} make \
+MMAKE= ${MMAKEENV} ${BSDMAKE} \
-D_UPGRADING \
-DNOMAN -DNO_MAN -DNOSHARED -DNO_SHARED \
-DNO_CPU_CFLAGS -DNO_WERROR
OpenPOWER on IntegriCloud