bug-make
[Top][All Lists]
Advanced

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

Re: [bug #55137] $(file …) is executed too early when used in recipe


From: Edward Welbourne
Subject: Re: [bug #55137] $(file …) is executed too early when used in recipe
Date: Fri, 30 Nov 2018 12:01:24 +0000

Marcin Kasperski (30 November 2018 11:59)

> I tried using the following snippet:
>
>    OUTPUT/something :
>          mkdir -p OUTPUT
>          $(file > $@, something)
>
> It crashes with
>      OUTPUT/something: No such file or directory. Stop.
>
> Moreover, looks like file is executed before anything else happens,

That's the defined behaviour.
All variables are evaluated and all functions called before any commands are 
run.
It's the result of that evaluation that is the text of the commands to be run, 
after all.

        Eddy.



reply via email to

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