bug-make
[Top][All Lists]
Advanced

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

Re: Order of expansion of recipe lines


From: Tim Murphy
Subject: Re: Order of expansion of recipe lines
Date: Mon, 14 Mar 2016 20:07:30 +0000



On 14 March 2016 at 14:22, Paul Smith <address@hidden> wrote:
Something that seems to be a constant source of confusion for users is
the fact that GNU make expands the entire recipe first, before it starts
any rules.  Consider this recipe:

  all:
          @echo hi
          @$(info there)


or indeed :

all:
        @mkdir output; $(file stuff>>output/file.txt)


Just to point out the obvious that this change wouldn't remove the need to understand the order of expansion.


Regards,

Tim



reply via email to

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