Re: writing to make file

2007-07-31 Thread Paul Smith
On Tue, 2007-07-31 at 22:40 -0700, micron_make wrote: > In one of my make make files I do the following: > files_path=$(abspath $(wildcard ../src/*.c)) > filt=$(subst /, ,$(files_path)) > mod_name_filter=$(filter Module_%,$(filt)) > MODULE_NAME=$(mod_name_filter) Weird, but OK. I really, really t

Re: writing to make file

2007-07-31 Thread micron_make
Paul Smith-20 wrote: > > On Tue, 2007-07-31 at 00:15 -0700, micron_make wrote: >> I have variable whose value will be evaluated at the beginning. I need >> to paste this value (not the variable name). I do not want to >> reference the variable, since the usage requires the value to be >> pasted.

Re: Copied sourcefiles, automatic dependencies

2007-07-31 Thread Paul Smith
On Tue, 2007-07-31 at 19:09 +0200, Torsten Mohr wrote: > In a large project we have the sources organised in several subdirectories, > for example: > > SRC := some/where/main.c a/directory/gui.c some/where/else/stuff.c > > VPATH := some/where a/directoy some/where/else > > BASENAMES := $(patsub

Re: Making makefiles

2007-07-31 Thread Paul Smith
On Tue, 2007-07-31 at 10:33 -0500, David A. Greene wrote: > Simple question: when make tries to rebuild makefiles (included .mk > files, for example), does it do so in parallel if -j was specified? Yes. The rebuild of makefiles is in every way identical to all other make rule processing: make sim

Copied sourcefiles, automatic dependencies

2007-07-31 Thread Torsten Mohr
Hi, > I treat my dependency files exactly the same as my object files, so I > keep them in a separate tree. If you prefer to keep your object files in > the source tree I'd just put my dependency files in the source tree too. > > I don't have a separate step to create the dependency info either. >

Re: Resolution of timestamp, other possible pitfalls?

2007-07-31 Thread David A. Greene
On Tuesday 31 July 2007 08:19, Paul Smith wrote: > There is a GSoC project underway right now which will add a feature of > "user definable out of date detection"; this should allow users to use > md5sum or other advanced criteria for determining when files are out of > date. Oooh, that'd be real

Making makefiles

2007-07-31 Thread David A. Greene
Simple question: when make tries to rebuild makefiles (included .mk files, for example), does it do so in parallel if -j was specified? -Dave ___ Help-make mailing list Help-make@gnu.org http://lists.gnu.o

Re: Testing rule success

2007-07-31 Thread David A. Greene
On Monday 30 July 2007 21:18, David A. Greene wrote: > On Monday 30 July 2007 17:39, Paul Smith wrote: > > There is no other way to do it than wildcard. As long as you're testing > > for the existence of a TARGET file (that is declared a target in the > > makefile and only updated through the ausp

Re: writing to make file

2007-07-31 Thread Paul Smith
On Tue, 2007-07-31 at 00:15 -0700, micron_make wrote: > I have variable whose value will be evaluated at the beginning. I need > to paste this value (not the variable name). I do not want to > reference the variable, since the usage requires the value to be > pasted. Is there way to do it in the m

Re: Resolution of timestamp, other possible pitfalls?

2007-07-31 Thread Paul Smith
On Tue, 2007-07-31 at 09:55 +0200, Torsten Mohr wrote: > as i understand it the resolution of the timestamps of files is 1 second. > Is this sufficient for "make" to work correctly? Especially as nowadays > PCs get more and more powerful? Is it possible that problems can occur > from that? Make

writing to make file

2007-07-31 Thread micron_make
Hi, I have variable whose value will be evaluated at the beginning. I need to paste this value (not the variable name). I do not want to reference the variable, since the usage requires the value to be pasted. Is there way to do it in the make framework? Cheers!! -- View this message in context:

Re: Moved sourcefiles and dependencies, automatic dependencies

2007-07-31 Thread Kristof Provost
On 2007-07-31 11:28:06 (+0200), Torsten Mohr <[EMAIL PROTECTED]> wrote: > Hi, > > [for generating the dependencies] > > > It there any reason you can't use the full path, or at least the path > > relative to the root of your project directory? > > I also thought about the two possibilities: > >

Re: Moved sourcefiles and dependencies, automatic dependencies

2007-07-31 Thread Torsten Mohr
Hi, [for generating the dependencies] > It there any reason you can't use the full path, or at least the path > relative to the root of your project directory? I also thought about the two possibilities: 1. have the same folder structure for the dependencies as for the sources 2. create the de

Re: Moved sourcefiles and dependencies, automatic dependencies

2007-07-31 Thread Kristof Provost
On 2007-07-31 09:57:09 (+0200), Torsten Mohr <[EMAIL PROTECTED]> wrote: > Hi, > > in a project in the office we store the list of files in a variable and > use automatic dependency generation. > > I generate the name of the dependency file for the sources from the basename > of the files and prep

Moved sourcefiles and dependencies, automatic dependencies

2007-07-31 Thread Torsten Mohr
Hi, in a project in the office we store the list of files in a variable and use automatic dependency generation. I generate the name of the dependency file for the sources from the basename of the files and prepend a different directory.  This way "some/where/on/disk/main.c" becomes "dependencies

Resolution of timestamp, other possible pitfalls?

2007-07-31 Thread Torsten Mohr
Hi, as i understand it the resolution of the timestamps of files is 1 second. Is this sufficient for "make" to work correctly?  Especially as nowadays PCs get more and more powerful?  Is it possible that problems can occur from that? Another question, i heard that on some windows systems a file t