[Top][All Lists]

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

Re: The .ONESHELL: special target does not appear to work

From: Paul Smith
Subject: Re: The .ONESHELL: special target does not appear to work
Date: Fri, 11 Nov 2011 01:23:50 -0500

On Fri, 2011-11-11 at 17:31 +1300, Jim Walls wrote:
> I need to be able to run several recipe lines within the same shell.  I 
> know that I can string all the commands together in a single line - but 
> I have a quite complex recipe for the target, so being to execute the 
> entire recipe in a single shell is quite attractive to me.  The 
> .ONESHELL: special target is supposed to do this - but I don't seem to 
> be able to get it to work... am I missing something?

> $ make -v
> GNU Make 3.81

The .ONESHELL feature was added in GNU make 3.82.

See the NEWS file:

Version 3.82
* New special target: .ONESHELL instructs make to invoke a single instance
  of the shell and provide it with the entire recipe, regardless of how many
  lines it contains.

 Paul D. Smith <address@hidden>          Find some GNU make tips at:            
 "Please remain calm...I may be mad, but I am a professional." --Mad Scientist

reply via email to

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