automake
[Top][All Lists]
Advanced

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

Re: Handling of Makefile variables


From: Ralf Wildenhues
Subject: Re: Handling of Makefile variables
Date: Wed, 5 Nov 2008 07:21:00 +0100
User-agent: Mutt/1.5.18 (2008-05-17)

* Bob Friesenhahn wrote on Wed, Nov 05, 2008 at 01:13:05AM CET:
> On Tue, 4 Nov 2008, LCID Fire wrote:
>
>>> Correct.  To set variables globally, AC_SUBST them from configure.ac.
>> The thing I tried to achieve is to collect all the sourcefiles through
>> the SUBDIRS structure downwards and then in some subdirectory build the
>> SOURCES variable - and using AC_SUBST it complains that subst is not
>> allowed to be used in SOURCES. What's the "correct" way to do this?

Put
  AC_SUBST([variable], [value])

or
  variable=value
  AC_SUBST([variable])

in configure.ac.  Enjoy using $(variable) in all Makefile.am files.

Cheers,
Ralf




reply via email to

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