[Top][All Lists]

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

Re: making config files

From: Peter Johansson
Subject: Re: making config files
Date: Thu, 14 Jan 2010 19:22:41 -0500
User-agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.4; en-US; rv: Gecko/20091204 Thunderbird/3.0

On 1/14/10 7:28 AM, Daniel Pocock wrote:

This is how I've been going about it: create $(top_srcdir)/ like so:

FIXCONFIG = $(top)/scripts/fixconfig

You probably mean $(top_builddir)
%: %.tmpl $(FIXCONFIG)

AFAIU, %: %.tmpl is GNU Make specific and won't work with other makes.
and put something like the following into each

include $(top_srcdir)/

bin_SCRIPTS = ganglia-config

The problem with doing this via a config script is that it will not honor a sequence such as:
make prefix=/opt
make install

because the value '/opt' will not propagate to the generated files. It is required by GNU Coding Standards, but of course something you can completely ignore as long as you don't claim you follow GCS.
However, things like ganglia-config should be generated during the install phase, although the default behavior for the _SCRIPTS primary appears to be processing during the build phase - is there a recommended way it can be influenced to delay processing until the install phase?

I don't understand why you are against creating files during 'make all', but couldn't automake's install-exec-local target help you here?


reply via email to

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