Ensure _objroot is correctly formatted

This commit is contained in:
Simon J. Gerraty 2013-10-13 00:17:24 +00:00
parent 7248444645
commit 81ea16de6c
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/projects/bmake/; revision=256415

View File

@ -35,7 +35,13 @@ _stage_file_basename = $${f\#\#*/}
_stage_target_dirname = $${t%/*}
.endif
_OBJROOT ?= ${OBJROOT:U${OBJTOP:H}}
.if ${_OBJROOT:M*/} != ""
_objroot ?= ${_OBJROOT:tA}/
.else
_objroot ?= ${_OBJROOT:tA}
.endif
# make sure this is global
_STAGED_DIRS ?=
.export _STAGED_DIRS