automake-ng
[Top][All Lists]
Advanced

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

Re: [Automake-NG] [PATCH] [ng] built sources: avoid unconditional recurs


From: Akim Demaille
Subject: Re: [Automake-NG] [PATCH] [ng] built sources: avoid unconditional recursive make invocation
Date: Thu, 5 Jul 2012 12:11:32 +0200

Le 4 juil. 2012 à 11:54, Stefano Lattarini a écrit :

> Hi Akim.

Hi!

>> There no way to have PHONY targets first?  About Makefile.
>> 
> I'm not sure I'm following.  You mean having a way to ensure some target are
> considered before all the other ones (apart their dependencies, of course)?
> Like, in an hypothetical version of GNU make 3.83, something like this:
> 
>    .EARLY: $(BUILT_SOURCES)

I was referring to add dependencies to Makefile.  Since it is
handled very early, I guess it is quite equivalent to your
.EARLY.  I believe such dependencies do not trigger reloading Makefile.


> $ cat Makefile
> all:
>       echo all
> 
> Makefile: foo bar baz
> 
> baz:
>       echo $@>$@
> 
> foo bar:
>       echo $@>$@
> $ rm -f foo bar baz
> $ make
> echo foo>foo
> echo bar>bar
> echo baz>baz
> echo all
> all
> $ make
> echo all
> all
> $ rm -f foo
> $ make
> echo foo>foo
> echo all
> all
> $ rm -f bar baz
> $ make
> echo bar>bar
> echo baz>baz
> echo all
> all
> 



reply via email to

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