Do not allow the cleandir target to blow away the entire source
directory when MAKEOBJDIRPREFIX is defined but empty. Reported by: Vernon Schryver <vjs@calcite.rhyolite.com>
This commit is contained in:
parent
348eb61704
commit
a48089f705
@ -43,7 +43,7 @@
|
||||
# create build directory.
|
||||
#
|
||||
|
||||
.if defined(MAKEOBJDIRPREFIX)
|
||||
.if defined(MAKEOBJDIRPREFIX) && !empty(MAKEOBJDIRPREFIX)
|
||||
CANONICALOBJDIR:=${MAKEOBJDIRPREFIX}${.CURDIR}
|
||||
.else
|
||||
CANONICALOBJDIR:=/usr/obj${.CURDIR}
|
||||
|
Loading…
Reference in New Issue
Block a user