[Top][All Lists]

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

Re: functions on prerequisites

From: Paul D. Smith
Subject: Re: functions on prerequisites
Date: Sat, 30 Aug 2003 01:25:38 -0400

%% Jim McElwaine <address@hidden> writes:

  jm> I want to make rules like the following

  jm> $(A): %: $(dir %)/a

  jm> where I operate with string functions on % to generate the
  jm> dependencies but these do not seem to be evaluated Is there are
  jm> any solution to this without generating an intermediate file?

The only ways are with an intermediate file, or using $(eval ...)

  jm> The info files say intriguingly that normaly only on "%" is used
  jm> in a patterm mathcing rule but they don't explain how to use more
  jm> than one, which would actually work for me.

You can't use more than one.

 Paul D. Smith <address@hidden>          Find some GNU make tips at:            
 "Please remain calm...I may be mad, but I am a professional." --Mad Scientist

reply via email to

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