From 75f12cc1b845dff2facb164af7389aa5541337e6 Mon Sep 17 00:00:00 2001 From: ru Date: Wed, 18 Aug 2004 06:49:56 +0000 Subject: Moved the MAKEOBJDIRPREFIX check from Makefile.inc1 to Makefile, to suppress warnings with installworld and distributeworld when env(1) cannot be found in the PATH. --- Makefile | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 51bd582..67406a7 100644 --- a/Makefile +++ b/Makefile @@ -85,6 +85,12 @@ TGTS+= ${BITGTS} PATH= /sbin:/bin:/usr/sbin:/usr/bin MAKEOBJDIRPREFIX?= /usr/obj +_MAKEOBJDIRPREFIX!= env -i PATH=${PATH} MAKEFLAGS="${.MAKEFLAGS}" ${MAKE} \ + -f /dev/null -V MAKEOBJDIRPREFIX dummy +.if !empty(_MAKEOBJDIRPREFIX) +.error MAKEOBJDIRPREFIX can only be set in environment, not as a global\ + (in /etc/make.conf) or command-line variable. +.endif MAKEPATH= ${MAKEOBJDIRPREFIX}${.CURDIR}/make.${MACHINE} BINMAKE= \ `if [ -x ${MAKEPATH}/make ]; then echo ${MAKEPATH}/make; else echo ${MAKE}; fi` \ -- cgit v1.1