Index: sys/conf/kmod.mk =================================================================== --- sys/conf/kmod.mk +++ sys/conf/kmod.mk @@ -218,9 +218,11 @@ _ILINKS=@ machine .if ${MACHINE} != ${MACHINE_CPUARCH} _ILINKS+=${MACHINE_CPUARCH} +CLEANFILES+=${MACHINE_CPUARCH} .endif .if ${MACHINE_CPUARCH} == "i386" || ${MACHINE_CPUARCH} == "amd64" _ILINKS+=x86 +CLEANFILES+=x86 .endif all: objwarn ${PROG} @@ -263,7 +265,7 @@ ln -sf $$path ${.TARGET:T} .endfor -CLEANFILES+= ${PROG} ${KMOD}.kld ${OBJS} +CLEANFILES+= ${PROG} ${KMOD}.kld ${OBJS} @ machine .if defined(DEBUG_FLAGS) CLEANFILES+= ${FULLPROG} ${PROG}.symbols