%% 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: sr> make: *** No rule to make target `_foo.o', needed by `foo.o'. Stop. sr> But I got: sr> make: *** No rule to make target `_', needed by `foo.o'. Stop. sr> That seems to me that make does not expand $* to the target. Yes, that's what I said. No make expands this way. Or using other words, "no version of make exists that expands this way". If I had wanted to write that make _did_ do this, I would have added a comma or semicolon. This would mean "you're incorrect, make does expand $* ...": No, make expands $* ... while this means "no version of make expands $* ...": No make expands $* ... sr> Not an option for me - I have to support 3.79.1. Then your only way is to use the auto-re-exec trick. -- ------------------------------------------------------------------------------- Paul D. Smith <[EMAIL PROTECTED]> Find some GNU make tips at: http://www.gnu.org http://make.paulandlesley.org "Please remain calm...I may be mad, but I am a professional." --Mad Scientist _______________________________________________ Bug-make mailing list [EMAIL PROTECTED] http://mail.gnu.org/mailman/listinfo/bug-make