Date: Tue, 13 May 2003 12:36:03 -0400 (EDT) From: John Baldwin <jhb@FreeBSD.org> To: "M. Warner Losh" <imp@bsdimp.com> Cc: arch@freebsd.org Subject: RE: Moving the generation of foodevs.h to build time Message-ID: <XFMail.20030513123603.jhb@FreeBSD.org> In-Reply-To: <20030513.001815.55840081.imp@bsdimp.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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@FreeBSD.org> <>< http://www.FreeBSD.org/~jhb/
"Power Users Use the Power to Serve!" - http://www.FreeBSD.org/
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?XFMail.20030513123603.jhb>
