Moving the generation of foodevs.h to build time
    John Baldwin 
    jhb at FreeBSD.org
       
    Tue May 13 09:36:03 PDT 2003
    
    
  
On 13-May-2003 M. Warner Losh wrote:
> Index: conf/kmod.mk
> ===================================================================
> RCS file: /home/ncvs/src/sys/conf/kmod.mk,v
> retrieving revision 1.137
> diff -u -r1.137 kmod.mk
> --- conf/kmod.mk      3 Mar 2003 22:51:22 -0000       1.137
> +++ conf/kmod.mk      13 May 2003 06:06:30 -0000
> @@ -286,15 +286,16 @@
>  .endif
>  .endfor
>  
> -.if ${SRCS:Mmiidevs.h} != ""
> -CLEANFILES+= miidevs.h
> +.for _dev in mii usb pccard
> +.if ${SRCS:M${_dev}devs.h} != ""
> +CLEANFILES+= ${_dev}devs.h
>  .if !exists(@)
>  miidevs.h: @
>  .endif
>  .if exists(@)
> -miidevs.h: @/tools/devlist2h.awk @/dev/mii/miidevs
> +miidevs.h: @/tools/devlist2h.awk @/dev/${_dev}/${_dev}devs
s/mii/${_dev}/
>  .endif
> -     ${AWK} -f @/tools/devlist2h.awk @/dev/mii/miidevs
> +     ${AWK} -f @/dev/${_dev}/devlist2h.awk @/dev/${_dev}/${_dev}devs
>  .endif
-- 
John Baldwin <jhb at FreeBSD.org>  <><  http://www.FreeBSD.org/~jhb/
"Power Users Use the Power to Serve!"  -  http://www.FreeBSD.org/
    
    
More information about the freebsd-arch
mailing list