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: > ------------------------------------ > > When executed I expected it to print: > foo.h bar.h FORCE > > But it only prints bar.h FORCE > > Is it coorect behaviour that make does not expand the variable > $(deps_foo.o)? > % is equal to foo.o in the above example, and the varibale is > constructed correct. But it is not expanded.
Short question.. Is there any other way to get the name of the target to be used in the prerequisite list? Other make implementation expands $* to the name of the target when listed in the prerequisites, but not gnu make. Sam _______________________________________________ Bug-make mailing list [EMAIL PROTECTED] http://mail.gnu.org/mailman/listinfo/bug-make