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 <[email protected]> Find some GNU make tips at: http://www.gnu.org http://make.mad-scientist.net "Please remain calm...I may be mad, but I am a professional." --Mad Scientist _______________________________________________ Help-make mailing list [email protected] https://lists.gnu.org/mailman/listinfo/help-make
