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: > ---

Re: GNU make integration through an IDE

2003-10-03 Thread Alain Magloire
> First, thanks for taking the time to respond some of the inquiries. > >> where do you go when the user asks to go to "install"? > > am> Ho! I do not know. But it should not matter, we parse the > am> makefile and provide the users with a list of the targets. In > am> your example sh

Re: GNU make integration through an IDE

2003-10-03 Thread Noel Yap
"Paul D. Smith" wrote: > Yes, not only in theory but in fact. > > But what I'm saying is that if you're providing a capability to jump to > where a target is defined, you'll have to pick one of those. How do you > choose which one? Or do you list the install target 3 times? Not that I agree wit

Re: GNU make integration through an IDE

2003-10-03 Thread Paul D. Smith
%% "Alain Magloire" <[EMAIL PROTECTED]> writes: >> where do you go when the user asks to go to "install"? am> Ho! I do not know. But it should not matter, we parse the am> makefile and provide the users with a list of the targets. In am> your example should not the "install" targets be