On 2011-08-10 16:13, René Ladan wrote: ... > This works, but why did the conditional version work for buildworld > and for earlier buildkernel invocations? Apparently buildkernel changes to the kernel obj dir, e.g: cd ${KRNLOBJDIR}/${_kernel}; ${KMAKE} ${CLEANDIR} so ".if !empty(.CURDIR:M/usr/src*)" will not work then.