Fix building on read-only source trees.
This partially reverts r296702 and reworks the original check to only look in .CURDIR. This avoids ever trying to rebuild a .src file that is already in the source tree as an override. PR: 211952 MFC after: 3 days Sponsored by: EMC / Isilon Storage Division
This commit is contained in:
@@ -67,9 +67,11 @@ codesets: ${ESDB}
|
||||
|
||||
.if !defined(NO_PREPROC)
|
||||
.for i in ${PART}
|
||||
.if !exists(${.CURDIR}/${EPREFIX}${i:S/:/@/}.src)
|
||||
${EPREFIX}${i:S/:/@/}.src: ${CODE}.src
|
||||
sed ${SED_EXP:S@%%PART%%@${i}@} ${.ALLSRC} > ${.TARGET}
|
||||
@echo ${.TARGET} >>.tmpfiles
|
||||
.endif
|
||||
.endfor
|
||||
.endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user