GNU Make & .ONESHELL

GNU Make & .ONESHELL:

If you’re still unfortunate enough to be using GNU Make, the .ONESHELL special target can be quite useful:

.ONESHELL: If .ONESHELL is mentioned as a target, then when a target is built all lines of the recipe will be given to a single invocation of the shell rather than each line being invoked separately (see Recipe Execution).