From owner-freebsd-hackers Sat May 13 4: 1: 8 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from smtp11.bellglobal.com (smtp11.bellglobal.com [204.101.251.53]) by hub.freebsd.org (Postfix) with ESMTP id A8ADA37BC49 for ; Sat, 13 May 2000 04:01:05 -0700 (PDT) (envelope-from hoek@FreeBSD.org) Received: from localhost.nowhere (ppp18358.on.bellglobal.com [206.172.130.38]) by smtp11.bellglobal.com (8.8.5/8.8.5) with ESMTP id HAA17416; Sat, 13 May 2000 07:07:11 -0400 (EDT) Received: (from tim@localhost) by localhost.nowhere (8.9.3/8.9.1) id GAA08846; Sat, 13 May 2000 06:42:27 -0400 (EDT) (envelope-from tim) Date: Sat, 13 May 2000 06:42:27 -0400 From: Tim Vanderhoek To: Samuel Tardieu Cc: freebsd-hackers@FreeBSD.org Subject: Re: make question Message-ID: <20000513064227.B8456@mad> References: <2000-05-12-23-05-04+trackit+sam@inf.enst.fr> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.95i In-Reply-To: <2000-05-12-23-05-04+trackit+sam@inf.enst.fr>; from Samuel Tardieu on Fri, May 12, 2000 at 11:05:03PM +0200 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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: > > > .ads.lo: > > [...] > > 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