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_". _______________________________________________ Help-make mailing list [email protected] http://lists.gnu.org/mailman/listinfo/help-make
