automake
[Top][All Lists]
Advanced

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

Re: Handling of Makefile variables


From: Bob Friesenhahn
Subject: Re: Handling of Makefile variables
Date: Tue, 4 Nov 2008 18:13:05 -0600 (CST)

On Tue, 4 Nov 2008, LCID Fire wrote:
I try to refactor the sourcecode into a directory structure because the
root directory gets a little bit packed.

Non-recursive build does not rule out using a directory structure. Please see my project (http://www.GraphicsMagick.org/) as an example, although I would not hold it up as a reference regarding currently recommended practices.

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?

Please read the documentation. Automake needs to know about all the source files in advance. At build time, the list of build products may be slimmed down to only the ones needed.

Bob
======================================
Bob Friesenhahn
address@hidden, http://www.simplesystems.org/users/bfriesen/
GraphicsMagick Maintainer,    http://www.GraphicsMagick.org/





reply via email to

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