help-make
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Really Really odd error


From: Paul Smith
Subject: Re: Really Really odd error
Date: Mon, 25 Oct 2010 13:50:15 -0400

On Mon, 2010-10-25 at 10:16 -0700, prgm030 wrote:
> I am sure this must be really simple, but it escapes me. Here is the code:
> 
> a:
>       @echo $(patsubst 5.9.0_%,%,TEXT_5.9.0_defs)
>       echo $(patsubst %.c,%.o,x.c.c bar.c)
> 
>  and the output:
> 
> TEXT_5.9.0_defs
> echo x.c.o bar.o
> x.c.o bar.o
> 
> As you can see, the second substitution from the GNU Make manual works, the
> first fails miserably.

The pattern "5.9.0_%" does not match the string "TEXT_5.9.0_defs", so
the substitution does not happen.

The pattern "5.9.0_%" will only match a string that starts with
"5.9.0_"; your string starts with "TEXT_5.9.0_".




reply via email to

[Prev in Thread] Current Thread [Next in Thread]