Re: Multiple pattern-specific variable assignments

2002-05-28 Thread Paul D. Smith
%% "Adrian Ashley" <[EMAIL PROTECTED]> writes: aa> Tried that: Oh right. Duh. Need to remember to drink my morning tea before responding :). aa> I hesitate to call this a bug, as the documentation does say that aa> pattern rule matching proceeds until the first match and then aa> stop

Re: Multiple pattern-specific variable assignments

2002-05-28 Thread Adrian Ashley
Paul, > aa> Can anyone suggest a way to accomplish multiple > aa> pattern-specific variable assignments? This > aa> fragment illustrates what I'm trying to do. > > aa> foo-%.o : CFLAGS += -DVARIANT=FOO > aa> bar-%.o : CFLAGS += -DVARIANT=BAR > > aa> %-gcc.o : CFLAGS += -DGCC > aa>

Re: Multiple pattern-specific variable assignments

2002-05-28 Thread Paul D. Smith
%% "Adrian Ashley" <[EMAIL PROTECTED]> writes: aa> Can anyone suggest a way to accomplish multiple pattern-specific variable aa> assignments? This fragment illustrates what I'm trying to do. aa> foo-%.o : CFLAGS += -DVARIANT=FOO aa> bar-%.o : CFLAGS += -DVARIANT=BAR aa> %-gcc.o : CFL

Multiple pattern-specific variable assignments

2002-05-28 Thread Adrian Ashley
Can anyone suggest a way to accomplish multiple pattern-specific variable assignments? This fragment illustrates what I'm trying to do. --snip-- CC_GCC=gcc CC_OTHER=another-cc CFLAGS = -DBASIC foo-%.o : CFLAGS += -DVARIANT=FOO bar-%.o : CFLAGS += -DVARIANT=BAR %-