Update to latest, handle case of __objdir=obj

This commit is contained in:
Simon J. Gerraty 2017-04-15 01:52:49 +00:00
parent b46b903930
commit 6029706346
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=316950

View File

@ -58,7 +58,10 @@ __objdir_made != echo ${__objdir}/; umask ${OBJDIR_UMASK:U002}; \
# This causes make to use the specified directory as .OBJDIR
.OBJDIR: ${__objdir}
.if ${.OBJDIR:tA} != ${__objdir:tA} && ${__objdir_made:Uno:M${__objdir}/*} != ""
# watch out for __objdir being relative path
.if !(${__objdir:M/*} == "" && ${.OBJDIR:tA} == ${${.CURDIR}/${__objdir}:L:tA})
.error could not use ${__objdir}: .OBJDIR=${.OBJDIR}
.endif
.endif
.endif
.endif