[Top][All Lists]

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

Re: functions on prerequisites

From: Mike Gibson
Subject: Re: functions on prerequisites
Date: Fri, 29 Aug 2003 12:18:57 -0600
User-agent: KMail/1.5.1

I've found that trying to use the implicit rules to do anything very complex 
is pretty difficult.  I've even tried stuff very similar to what you're doing 
and I've ended up using $(eval ...) and define to create sets of regular 
rules that do exactly what I want instead of trying to coerce implicit rules 
to do what I want.  The mechanism was really designed to work for simple %.c 
to %.o type stuff.  Anything more complex is beyond it's ability.

On Friday 29 August 2003 09:54 am, Jim McElwaine wrote:
> I want to make rules like the following
> $(A): %: $(dir %)/a
> where I operate with string functions on % to generate the
> dependencies but these do not seem to be evaluated Is there are any
> solution to this without generating an intermediate file?
> The info files say intriguingly that normaly only on "%" is used in a
> patterm mathcing rule but they don't explain how to use more than one,
> which would actually work for me.
> for example
> A:= ad/ad bd/bd cd/cd
> $(A): %/%: %/a
> but this doesn't work how I would expect either
> Jim

reply via email to

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