aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorBryan Drewery <bdrewery@FreeBSD.org>2018-06-20 19:45:04 +0000
committerBryan Drewery <bdrewery@FreeBSD.org>2018-06-20 19:45:04 +0000
commitd406018534ec07d7aa02205c158b790ad3f0f16f (patch)
treef44c8949fb759c68c660ac5419aa468feae7a987 /Makefile
parent75e6ea22c5cae997c5bbf2f2e358f1caf86b9ed3 (diff)
downloadsrc-d406018534ec07d7aa02205c158b790ad3f0f16f.tar.gz
src-d406018534ec07d7aa02205c158b790ad3f0f16f.zip
Only look for NOTES as needed.
Sponsored by: Dell EMC
Notes
Notes: svn path=/head/; revision=335460
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile8
1 files changed, 4 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index 4113aeb0e71e..da307aa97e01 100644
--- a/Makefile
+++ b/Makefile
@@ -573,13 +573,13 @@ universe_${target}_${target_arch}: universe_${target}_prologue .MAKE .PHONY
universe_${target}_done: universe_${target}_kernels .PHONY
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 \
+ @if [ -e "${KERNSRCDIR}/${target}/conf/NOTES" ]; then \
+ (cd ${KERNSRCDIR}/${target}/conf && env __MAKE_CONF=/dev/null \
${SUB_MAKE} LINT \
> ${.CURDIR}/_.${target}.makeLINT 2>&1 || \
(echo "${target} 'make LINT' failed," \
- "check _.${target}.makeLINT for details"| ${MAKEFAIL}))
-.endif
+ "check _.${target}.makeLINT for details"| ${MAKEFAIL})); \
+ fi
@cd ${.CURDIR}; ${SUB_MAKE} ${.MAKEFLAGS} TARGET=${target} \
universe_kernels
.endif # !MAKE_JUST_WORLDS