universe: Fix creating LINT files with AUTO_OBJ.

These are expected to be created in .CURDIR.

Reported by:	kib
Sponsored by:	Dell EMC Isilon
This commit is contained in:
Bryan Drewery 2017-11-08 23:41:27 +00:00
parent 9acf7b136d
commit 4556d0795f
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=325568

View File

@ -553,7 +553,8 @@ universe_${target}_kernels: universe_${target}_worlds .PHONY
universe_${target}_kernels: universe_${target}_prologue .MAKE .PHONY
.if exists(${KERNSRCDIR}/${target}/conf/NOTES)
@(cd ${KERNSRCDIR}/${target}/conf && env __MAKE_CONF=/dev/null \
${SUB_MAKE} LINT > ${.CURDIR}/_.${target}.makeLINT 2>&1 || \
${SUB_MAKE} -DNO_OBJ LINT \
> ${.CURDIR}/_.${target}.makeLINT 2>&1 || \
(echo "${target} 'make LINT' failed," \
"check _.${target}.makeLINT for details"| ${MAKEFAIL}))
.endif