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.

_______________________________________________
Bug-make mailing list
Bug-make@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-make

Reply via email to