--- src/sys/conf/kmod.mk 2007/01/19 07:23:42 1.32 +++ src/sys/conf/kmod.mk 2007/08/26 07:53:25 1.33 @@ -167,12 +167,13 @@ _ILINKS=@ machine_base machine cpu_base _ILINKS+=${ARCH} .endif -all: objwarn ${PROG} +all: objwarn fwheaders ${PROG} .if !defined(NOMAN) all: _manpages .endif -beforedepend: ${_ILINKS} ${FORWARD_HEADERS_COOKIE} +beforedepend: fwheaders +fwheaders: ${_ILINKS} ${FORWARD_HEADERS_COOKIE} # Ensure that the links exist without depending on it when it exists which # causes all the modules to be rebuilt when the directory pointed to changes. .for _link in ${_ILINKS}