Handle default MAKEOBJDIR for META_MODE.
If MAKEOBJDIRPREFIX is set, use it for default OBJROOT. If MAKEOBJDIR is empty or not a suitable value (no '/') set a default that works. Reviewed by: bdrewery
This commit is contained in:
parent
27065039bc
commit
5ab53989f4
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=287636
@ -13,11 +13,14 @@ MK_INSTALL_AS_USER= yes
|
||||
.warning MAKEOBJDIRPREFIX not supported; setting MAKEOBJDIR...
|
||||
# put things approximately where they want
|
||||
OBJROOT:=${MAKEOBJDIRPREFIX}${SRCTOP:S,/src,,}/
|
||||
MAKEOBJDIRPREFIX=
|
||||
.export MAKEOBJDIRPREFIX
|
||||
.endif
|
||||
.if empty(MAKEOBJDIR) || ${MAKEOBJDIR:M*/*} == ""
|
||||
# OBJTOP set below
|
||||
MAKEOBJDIR=$${.CURDIR:S,$${SRCTOP},$${OBJTOP},}
|
||||
MAKEOBJDIRPREFIX=
|
||||
# export but do not track
|
||||
.export-env MAKEOBJDIRPREFIX MAKEOBJDIR
|
||||
.export-env MAKEOBJDIR
|
||||
# now for our own use
|
||||
MAKEOBJDIR= ${.CURDIR:S,${SRCTOP},${OBJTOP},}
|
||||
.endif
|
||||
|
Loading…
Reference in New Issue
Block a user