Date: Sun, 11 Feb 2001 20:41:02 -0700 From: Warner Losh <imp@harmony.village.org> To: Bruce Evans <bde@zeta.org.au> Cc: audit@freebsd.org, peter@freebsd.org, bde@freebsd.org Subject: Re: kmod.mk patches to fix excessive recompiling Message-ID: <200102120341.f1C3f2W25906@harmony.village.org> In-Reply-To: Your message of "Mon, 12 Feb 2001 13:44:22 %2B1100." <Pine.BSF.4.21.0102121310120.1520-100000@besplex.bde.org> References: <Pine.BSF.4.21.0102121310120.1520-100000@besplex.bde.org>
index | next in thread | previous in thread | raw e-mail
In message <Pine.BSF.4.21.0102121310120.1520-100000@besplex.bde.org> Bruce Evans writes:
: > -beforedepend ${OBJS}: ${_ILINKS}
: > +beforedepend ${OBJS}:
Won't this be extra too?
: > +.if !exists(@)
: > +beforedepend ${OBJS}: @
: > +.endif
: > +.if !exists(machine)
: > +beforedepend ${OBJS}: machine
: > +.endif
:
: This should loop over ${_ILINKS}.
Hmmm... Something like replacing all of the above with
.for _l in ${_ILINKS}
.if !exists($_l)
beforedepend ${OBJS}: $_l
.endif
.endfor
: > +
:
: Extra blank line.
Thanks.
This is the coolest make bug I've seen in a long time.
Warner
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-audit" in the body of the message
help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200102120341.f1C3f2W25906>
