help-make
[Top][All Lists]
Advanced

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

Re: implementing emake's #pragma multi in GNU make?


From: Michael Stahl
Subject: Re: implementing emake's #pragma multi in GNU make?
Date: Fri, 08 Feb 2013 12:48:38 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130110 Thunderbird/17.0.2

On 08/02/13 05:22, Mark Galeck wrote:
> --- On Thu, 2/7/13, Michael Stahl <address@hidden> wrote:

>> there is also a more serious problem with just a dependency
>> but no rule
>> for "bar": make will not re-build targets that depend on
>> "bar", because
>> without a rule for "bar" make assumes that it's still up to
>> date.  this
>> means that the make invocation that builds "foo" will not
>> rebuild all
>> dependent files, and the next time you invoke make it will
>> see that
>> "bar"'s timestamp is newer and _then_ build its dependents.
> 
> 
> Nothing like that, I just tried:
> 
> 
> address@hidden ~]$ cat Makefile
> bar1: bar
>  touch $@
> 
> bar: foo
> foo : baz
>  touch foo bar
> address@hidden ~]$ touch bar1 foo bar
> address@hidden ~]$ touch baz
> address@hidden ~]$ make bar1
> touch foo bar
> touch bar1

but how often do users invoke a particular file target manually?

 [0] /tmp > make
 touch foo bar
 [0] /tmp > make
 touch bar1

is a result far more likely to happen in practice with your Makefile.





reply via email to

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