bug-automake
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Rule naming


From: Ralf Wildenhues
Subject: Re: Rule naming
Date: Mon, 12 Jul 2010 20:00:59 +0200
User-agent: Mutt/1.5.20 (2010-04-22)

Hi Yuri,

long time no see.  Welcome back!

* Юрий Пухальский wrote on Mon, Jul 12, 2010 at 11:36:59AM CEST:
> I don't know whether this may be considered a bug or not, but the
> following problem exists with native makes on AIX and HP-UX platforms.
> Automake is 1.11 on linux.
> I make two libraries like this:
> noinst_LTLIBRARIES = a.la b.la
> 
> And then i use one of them. If i specify @builddir@ explicitly:
> a_la_LIBADD = @builddir@/b.la
> 
> Then i have <path>/b.la (e.g. ./b.la) in _DEPENDENCIES, and b.la as a target.
> 
> While GNU make can cope with this and correctly understands that the
> goal is the same, on AIX native make cannot find the rule:

Exactly.  AIX make doesn't know that FILE and ./FILE are the same thing.
So just use one spelling, consistently, throughout.  Since @builddir@ is
always '.', you can just omit @builddir@/ throughout, for example.

> To be one the safe side it's easiest to add two targets doing the
> same, one with builddir prepended and one without. But there could be
> @builddir@/../<dir>/ something... Probably it cannot be solved without
> analyzing the paths of dependencies.

Having both FILE and ./FILE as targets isn't safe, either, because then
GNU make will complain about duplicate targets.

Cheers,
Ralf



reply via email to

[Prev in Thread] Current Thread [Next in Thread]