[Top][All Lists]

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

Re: make variables defined via include

From: Alexandre Duret-Lutz
Subject: Re: make variables defined via include
Date: Tue, 21 May 2002 09:56:50 +0200
User-agent: Gnus/5.090006 (Oort Gnus v0.06) Emacs/21.2 (i386-debian-linux-gnu)

>>> "Harlan" == Harlan Stenn <address@hidden> writes:


 Harlan> Unfortunately, it now appears that at the time when the
 Harlan> Makefile is initially scanned (by gmake 1.79.1),
 Harlan> $(libfoo_la_LIBDEP) is not defined, so it does not
 Harlan> appear as a dependency.  However, when "make" goes to
 Harlan> create the target, $(libfoo_la_LIBDEP) *is* defined, so
 Harlan> the link fails because the library has not yet been
 Harlan> built.

 Harlan> Is this making sense?

Sounds like you just hit the declaration-order-does-matter issue:

 Harlan> Any ideas on how to fix the problem?

Define your rules only once all involved variables are defined?
Alexandre Duret-Lutz

reply via email to

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