Index: Mk/Uses/kmod.mk =================================================================== --- Mk/Uses/kmod.mk +++ Mk/Uses/kmod.mk @@ -19,7 +19,7 @@ IGNORE= USES=kmod takes either no arguments or 'debug' .endif -.if !exists(${SRC_BASE}/sys/Makefile) +.if !exists(${SRC_BASE}/sys/Makefile) && target(build) IGNORE= requires kernel source files in SRC_BASE=${SRC_BASE} .endif