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 [EMAIL PROTECTED]
> with "unsubscribe freebsd-hackers" in the body of the message


-- 
Signature withheld by request of author.


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message

Reply via email to