Fixed MAKEOBJDIRPREFIX variable type check in case the env(1)

binary is not in PATH, as is the case with installworld, etc.
This commit is contained in:
Ruslan Ermilov 2004-10-18 17:47:31 +00:00
parent a5d15979f2
commit 588dbe0aa0

View File

@ -85,7 +85,8 @@ TGTS+= ${BITGTS}
PATH= /sbin:/bin:/usr/sbin:/usr/bin PATH= /sbin:/bin:/usr/sbin:/usr/bin
MAKEOBJDIRPREFIX?= /usr/obj MAKEOBJDIRPREFIX?= /usr/obj
_MAKEOBJDIRPREFIX!= env -i PATH=${PATH} MAKEFLAGS="${.MAKEFLAGS}" ${MAKE} \ _MAKEOBJDIRPREFIX!= /usr/bin/env -i \
PATH=${PATH} MAKEFLAGS="${.MAKEFLAGS}" ${MAKE} \
-f /dev/null -V MAKEOBJDIRPREFIX dummy -f /dev/null -V MAKEOBJDIRPREFIX dummy
.if !empty(_MAKEOBJDIRPREFIX) .if !empty(_MAKEOBJDIRPREFIX)
.error MAKEOBJDIRPREFIX can only be set in environment, not as a global\ .error MAKEOBJDIRPREFIX can only be set in environment, not as a global\