From a48089f705b6314cb3af659b7ba1cef284c37ecc Mon Sep 17 00:00:00 2001 From: sheldonh Date: Wed, 16 Aug 2000 14:58:42 +0000 Subject: [PATCH] Do not allow the cleandir target to blow away the entire source directory when MAKEOBJDIRPREFIX is defined but empty. Reported by: Vernon Schryver --- share/mk/bsd.obj.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/share/mk/bsd.obj.mk b/share/mk/bsd.obj.mk index b648222d8979..71f46605d37c 100644 --- a/share/mk/bsd.obj.mk +++ b/share/mk/bsd.obj.mk @@ -43,7 +43,7 @@ # create build directory. # -.if defined(MAKEOBJDIRPREFIX) +.if defined(MAKEOBJDIRPREFIX) && !empty(MAKEOBJDIRPREFIX) CANONICALOBJDIR:=${MAKEOBJDIRPREFIX}${.CURDIR} .else CANONICALOBJDIR:=/usr/obj${.CURDIR}