Make sure we qualify _objroot with trailing / if needed

This commit is contained in:
sjg 2013-03-15 20:20:14 +00:00
parent 2cf365a73a
commit 56806421c2

View File

@ -51,7 +51,12 @@ _CURDIR ?= ${.CURDIR}
_OBJDIR ?= ${.OBJDIR} _OBJDIR ?= ${.OBJDIR}
_OBJTOP ?= ${OBJTOP} _OBJTOP ?= ${OBJTOP}
_OBJROOT ?= ${OBJROOT:U${_OBJTOP}} _OBJROOT ?= ${OBJROOT:U${_OBJTOP}}
_objroot ?= ${_OBJROOT:tA} .if ${_OBJROOT:M*/}
_slash=/
.else
_slash=
.endif
_objroot ?= ${_OBJROOT:tA}${_slash}
_this = ${.PARSEDIR}/${.PARSEFILE} _this = ${.PARSEDIR}/${.PARSEFILE}