Date: Sat, 13 May 2000 06:42:27 -0400 From: Tim Vanderhoek <vanderh@ecf.utoronto.ca> To: Samuel Tardieu <sam@inf.enst.fr> Cc: freebsd-hackers@FreeBSD.org Subject: Re: make question Message-ID: <20000513064227.B8456@mad> In-Reply-To: <2000-05-12-23-05-04%2Btrackit%2Bsam@inf.enst.fr>; from Samuel Tardieu on Fri, May 12, 2000 at 11:05:03PM %2B0200 References: <2000-05-12-23-05-04%2Btrackit%2Bsam@inf.enst.fr>
next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, May 12, 2000 at 11:05:03PM +0200, Samuel Tardieu wrote: > > but make prefers the .ads.lo rule instead of the .adb.lo, despites the > order in the .SUFFIXES. Using "make -d s" to trace dependencies and rules, > I get: FWIW, this works correctly on ~3.4-R. It must have gotten broken somewhere between there and here. If you can locate the commit that actually broke it (or even tell us the version strings (`strings $(which make) | grep \$FreeBSD`) for your version), that would help to fix it. > I am having difficulties to implement the following rule in BSD make: to > produce file foobar.o, then start from foobar.adb if it exists, foobar.ads > otherwise. I want this to be compatible with both BSD and GNU make. > > I tried: > > .SUFFIXES: .adb .ads .lo > > .adb.lo: > <command> > > .ads.lo: > <command> > [...] > > SuffFindDeps (broca-exceptions.lo) > trying broca-exceptions.S...not there > trying broca-exceptions.adb...got it > using existing source broca-exceptions.ads > applying .ads -> .lo to "broca-exceptions.lo" > > broca-exceptions.adb has been found and should have been used, but > this "using existing source" message (coming after!) bugs me. The wrong > rule is then being selected. > > Any hint of where it can come from? > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-hackers" in the body of the message -- Signature withheld by request of author. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20000513064227.B8456>