Re: Execution of recipe commands

2015-09-03 Thread thutt
U.K Sharma writes: > Hello, > How can we know that GNU make runs the recipes via the bash -c '...' command? > --yogesh. I first tried looking at the sources, but with all the conditional compilation for various operating systems, it wasn't straightforward since I'm not familiar with it. I

Re: Execution of recipe commands

2015-09-03 Thread thutt
Paul Smith writes: > On Wed, 2015-09-02 at 20:41 -0700, th...@vmware.com wrote: > > Is there any way to induce Gnu Make to write the recipe to a file > > and then 'bash -c' the file? > > There is currently no way to get make to do this. However you can do it > yourself if you have GNU make 4

Re: Execution of recipe commands

2015-09-03 Thread Paul Smith
On Wed, 2015-09-02 at 20:41 -0700, th...@vmware.com wrote: > Is there any way to induce Gnu Make to write the recipe to a file > and then 'bash -c' the file? There is currently no way to get make to do this. However you can do it yourself if you have GNU make 4.0 or above, using the $(file ...) f

Execution of recipe commands

2015-09-03 Thread thutt
Hello folks, On Linux (at least) it appears that Gnu Make will execute each line in a recipe with 'bash -c'. If the recipe is quite (pronounced: really, really) long, this can result in an 'Argument list too long' error. Is there any way to induce Gnu Make to write the recipe to a fil