Let people use this with MAKEOBJDIRPREFIX if they really want to

This commit is contained in:
Simon J. Gerraty 2015-06-10 13:14:24 +00:00
parent 1fc3d968ac
commit b56a78b69e
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/projects/bmake/; revision=284220

View File

@ -40,7 +40,10 @@ MKOBJDIRS= auto
.if !defined(NOOBJ) && !defined(NO_OBJ) && ${MKOBJDIRS:Uno} == auto
# Use __objdir here so it is easier to tweak without impacting
# the logic.
__objdir?= ${MAKEOBJDIR}
.if !empty(MAKEOBJDIRPREFIX) && exists(${MAKEOBJDIRPREFIX})
__objdir?= ${MAKEOBJDIRPREFIX}${.CURDIR}
.endif
__objdir?= ${MAKEOBJDIR:Uobj}
__objdir:= ${__objdir:tA}
.if ${.OBJDIR} != ${__objdir}
# We need to chdir, make the directory if needed