[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Static pattern usage
From: |
Paul D. Smith |
Subject: |
Re: Static pattern usage |
Date: |
Fri, 3 Oct 2003 18:02:33 -0400 |
%% Sam Ravnborg <address@hidden> 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 <address@hidden> 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
Re: Static pattern usage, Paul D. Smith, 2003/10/03