help-make
[Top][All Lists]
Advanced

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

Re: Re-calculate variable values


From: Philip Guenther
Subject: Re: Re-calculate variable values
Date: Wed, 30 Sep 2009 09:39:45 -0700

On Wed, Sep 30, 2009 at 2:05 AM, Aditya Kher <address@hidden> wrote:
> I would like to re-evaluate or rather re-calculate variable value during
> making of target

What problem are you trying to solve?  That is, *why* do you want to do that?

If you're trying to do something that isn't driven by comparing
timestamps on files but rather is simply an iterative process, then a
simple shell script may be a simpler  and less confusing solution.


> %.txt:
>        touch ${RUN_COUNT}.txt

This rule is wrong: "To update *any* file ending in ".txt", touch the
file ${RUN_COUNT}.txt."  So if RUN_COUNT=1, then if you want to update
foo.txt, touch 1.txt.  If you want to update sldfjsldkf.txt, touch
1.txt.  How can that work?


Philip Guenther




reply via email to

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