diff --git a/sys/conf/kern.post.mk b/sys/conf/kern.post.mk index d3b398e87b5c..a82d904227fc 100644 --- a/sys/conf/kern.post.mk +++ b/sys/conf/kern.post.mk @@ -86,7 +86,8 @@ ports-${__target}: .ORDER: kernel-install modules-install -kernel-all: ${KERNEL_KO} ${KERNEL_EXTRA} +beforebuild: .PHONY +kernel-all: beforebuild .WAIT ${KERNEL_KO} ${KERNEL_EXTRA} kernel-cleandir: kernel-clean kernel-cleandepend