Re: Static pattern usage

2003-10-06 Thread Sam Ravnborg
On Mon, Oct 06, 2003 at 01:53:48PM +0400, Peter A. Kerzum wrote: > I used this trick with rather complex define/eval constructs > It really works but sometimes gives me 'virtual memory exhaused' > If you (Sam) are interested, I can give you precise example. I would be glad to see that - if not for

Re: Static pattern usage

2003-10-06 Thread Paul D. Smith
%% "Peter A. Kerzum" <[EMAIL PROTECTED]> writes: pak> I used this trick with rather complex define/eval constructs It pak> really works but sometimes gives me 'virtual memory exhaused' If pak> you (Sam) are interested, I can give you precise example. If pak> only I figured out how to work

Re: Static pattern usage

2003-10-06 Thread Peter A. Kerzum
I used this trick with rather complex define/eval constructs It really works but sometimes gives me 'virtual memory exhaused' If you (Sam) are interested, I can give you precise example. If only I figured out how to work out this (endless loop?) my build system would be perfect =) Paul D. Smith wro

Re: Static pattern usage

2003-10-03 Thread Paul D. Smith
%% Sam Ravnborg <[EMAIL PROTECTED]> writes: sr> On Fri, Oct 03, 2003 at 05:26:54PM -0400, Paul D. Smith wrote: >> No make expands $* in the prerequisites list to the name of the target. sr> Hmmm.. sr> foo.o : _$* FORCE sr> echo $^ sr> FORCE: sr> I expected make to print out:

Re: Static pattern usage

2003-10-03 Thread Sam Ravnborg
On Fri, Oct 03, 2003 at 05:18:04PM -0400, Paul D. Smith wrote: > > sr> Is it coorect behaviour that make does not expand the variable > sr> $(deps_foo.o)? > > Yes, because that's not the variable you asked to expand. You asked it > to expand the variable $(deps_%). Got it now, found the rig

Re: Static pattern usage

2003-10-03 Thread Sam Ravnborg
On Fri, Oct 03, 2003 at 05:26:54PM -0400, Paul D. Smith wrote: > > No make expands $* in the prerequisites list to the name of the target. Hmmm.. foo.o : _$* FORCE echo $^ FORCE: I expected make to print out: make: *** No rule to make target `_foo.o', needed by `foo.o'. Stop. But I g

Re: Static pattern usage

2003-10-03 Thread Paul D. Smith
%% Sam Ravnborg <[EMAIL PROTECTED]> writes: sr> Is there any other way to get the name of the target sr> to be used in the prerequisite list? sr> Other make implementation expands $* to the name of sr> the target when listed in the prerequisites, but not gnu make. No make expands $* in th

Re: Static pattern usage

2003-10-03 Thread Paul D. Smith
%% Sam Ravnborg <[EMAIL PROTECTED]> writes: sr> deps_foo.o := foo.h sr> foo.o : % : $(deps_%) bar.h FORCE sr> @echo $^ sr> When executed I expected it to print: sr> foo.h bar.h FORCE sr> But it only prints bar.h FORCE Right. sr> Is it coorect behaviour that make does not

Static pattern usage

2003-10-03 Thread Sam Ravnborg
I'm having troubles using static patters. See following example: deps_foo.o := foo.h foo.o : % : $(deps_%) bar.h FORCE @echo $^ FORCE: When executed I expected it to print: foo.h bar.h FORCE But it only prints bar

Re: Static pattern usage

2003-10-03 Thread Sam Ravnborg
On Fri, Oct 03, 2003 at 11:01:02PM +0200, Sam Ravnborg wrote: > I'm having troubles using static patters. > See following example: > > deps_foo.o := foo.h > > foo.o : % : $(deps_%) bar.h FORCE > @echo $^ > > FORCE: > ---