Re: making config files

2010-01-14 Thread Peter Johansson
On 1/14/10 7:28 AM, Daniel Pocock wrote: This is how I've been going about it: create $(top_srcdir)/ganglia.inc like so: FIXCONFIG = $(top)/scripts/fixconfig You probably mean $(top_builddir) %: %.tmpl $(FIXCONFIG) $(FIXCONFIG) $ AFAIU, %: %.tmpl is GNU Make specific and won't work

making config files

2010-01-13 Thread Daniel Pocock
Hi, I've been working on a project, Ganglia, that is built with autotools Included in the source tree are templates for various configuration files (e.g. modpython.conf.in). Some of these include hard coded paths. It seems appropriate to replace the hardcoded paths with substitutions

Re: making config files

2010-01-13 Thread Peter Johansson
Daniel Pocock wrote: Therefore, I felt that I should be aiming to have the config files generated at the last moment - probably during `make install', just before they are installed. Can anyone suggest best practice for doing this? please refer to

Re: making config files

2010-01-13 Thread Daniel Pocock
Peter Johansson wrote: Daniel Pocock wrote: Therefore, I felt that I should be aiming to have the config files generated at the last moment - probably during `make install', just before they are installed. Can anyone suggest best practice for doing this? please refer to

Re: making config files

2010-01-13 Thread Russ Allbery
Daniel Pocock dan...@pocock.com.au writes: Thanks for that - the sed example appears to be the type of thing I want. However, is there a more concise way to do this? I was thinking there may be some way to invoke sed or m4 on a template in much the way that gcc is invoked for *.c Half of

Re: making config files

2010-01-13 Thread Daniel Pocock
Russ Allbery wrote: Daniel Pocock dan...@pocock.com.au writes: Thanks for that - the sed example appears to be the type of thing I want. However, is there a more concise way to do this? I was thinking there may be some way to invoke sed or m4 on a template in much the way that