I have a makefile that calls external build scripts.
Some of these scripts (which I can't change) make use of commands that are forked / backgrounded (or asynchronous as the bash manual names them)
That means that the next line in the makefile can start before some of the previous command finishes - creating a race condition.
I somehow need to either wait on the forked process and all it's children, or simply prevent any command or subcommand of subsequent scripts running in the background.
Is there a way to prevent this, i.e. disable the ampersand '&' suffix to commands in the current and child subshells?