Unbreak KLDs that use VFS by accounting for changes in the generation

process for the vnode header files.
This commit is contained in:
green 2004-12-08 03:54:32 +00:00
parent 6224f36cad
commit a7cdf97674

View File

@ -315,18 +315,29 @@ ${_src}: @/tools/makeobjops.awk @/${_srcsrc}
.endfor # _ext
.endfor # _srcsrc
.for _ext in c h
.if ${SRCS:Mvnode_if.${_ext}} != ""
CLEANFILES+= vnode_if.${_ext}
.if ${SRCS:Mvnode_if.c} != ""
CLEANFILES+= vnode_if.c
.if !exists(@)
vnode_if.${_ext}: @
vnode_if.c: @
.endif
.if exists(@)
vnode_if.${_ext}: @/tools/vnode_if.awk @/kern/vnode_if.src
vnode_if.c: @/tools/vnode_if.awk @/kern/vnode_if.src
.endif
${AWK} -f @/tools/vnode_if.awk @/kern/vnode_if.src -${_ext}
${AWK} -f @/tools/vnode_if.awk @/kern/vnode_if.src -c
.endif
.if ${SRCS:Mvnode_if.h} != ""
CLEANFILES+= vnode_if.h
.if !exists(@)
vnode_if.h: @
.endif
.if exists(@)
vnode_if.h: @/tools/vnode_if.awk @/kern/vnode_if.src
.endif
${AWK} -f @/tools/vnode_if.awk @/kern/vnode_if.src -h
${AWK} -f @/tools/vnode_if.awk @/kern/vnode_if.src -p
${AWK} -f @/tools/vnode_if.awk @/kern/vnode_if.src -q
.endif
.endfor
.for _i in mii pccard usb
.if ${SRCS:M${_i}devs.h} != ""