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:
sheldonh 2000-08-16 14:58:42 +00:00
parent 348eb61704
commit a48089f705

View File

@ -43,7 +43,7 @@
# create build directory.
#
.if defined(MAKEOBJDIRPREFIX)
.if defined(MAKEOBJDIRPREFIX) && !empty(MAKEOBJDIRPREFIX)
CANONICALOBJDIR:=${MAKEOBJDIRPREFIX}${.CURDIR}
.else
CANONICALOBJDIR:=/usr/obj${.CURDIR}