diff options
author | imp <imp@FreeBSD.org> | 2007-12-11 20:00:55 +0000 |
---|---|---|
committer | imp <imp@FreeBSD.org> | 2007-12-11 20:00:55 +0000 |
commit | aec3ebc7918d314718caf8136652800c934c9470 (patch) | |
tree | b66dc99a970edd3dcb00c878a9e7fb2b3006dfa8 /Makefile | |
parent | 042cca2ff9a2db59d4fd924f4d6e126e57b0d905 (diff) | |
download | FreeBSD-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-- | Makefile | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -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 |