Fix installation with read-only OBJDIR.

Reported by:	npn
Sponsored by:	Dell EMC
This commit is contained in:
Bryan Drewery 2018-02-24 01:33:17 +00:00
parent 0ef8c0cb57
commit fc287c10fb
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=329890

View File

@ -177,7 +177,8 @@ CheckAutoObj() { \
fi; \
}
.if !empty(__objdir)
.if ${.CURDIR} == ${__objdir}
.if ${.CURDIR} == ${__objdir} || \
(exists(${__objdir}) && ${.TARGETS:M*install*} == ${.TARGETS})
__objdir_writable?= yes
.elif empty(__objdir_writable)
__objdir_writable!= \