diff options
author | sjg <sjg@FreeBSD.org> | 2015-06-10 13:14:24 +0000 |
---|---|---|
committer | sjg <sjg@FreeBSD.org> | 2015-06-10 13:14:24 +0000 |
commit | 7c855d8d1905aef84f61dd20b47e41f176e0d02c (patch) | |
tree | 7d3f6e241b4037659574b1f8fdecb6b84c1b689d | |
parent | 167576cd473259db5d2c5e46606ae2965c9e55c7 (diff) | |
download | FreeBSD-src-7c855d8d1905aef84f61dd20b47e41f176e0d02c.zip FreeBSD-src-7c855d8d1905aef84f61dd20b47e41f176e0d02c.tar.gz |
Let people use this with MAKEOBJDIRPREFIX if they really want to
-rw-r--r-- | share/mk/auto.obj.mk | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/share/mk/auto.obj.mk b/share/mk/auto.obj.mk index 795bc10..7cc094c 100644 --- a/share/mk/auto.obj.mk +++ b/share/mk/auto.obj.mk @@ -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 |