Use $(MAKE) for recursive make invocation. This respects the flags passed to the top level make as well as invoking the correct binary if the default is overridden on the command line.
The change fixes an ITS build failure on FreeBSD, which used gmake MAKE=gmake EMULATOR=... to recursively build everything using GNU make (gmake) instead of BSD make.
Tested on FreeBSD 13.1 using clang 13.0.0 (default compiler) and sanity checked on MacOS Monterey 12.6.2 using clang 14.0.0 (Xcode 14.1). (MacOS uses GNU make by default.)
Use $(MAKE) for recursive make invocation. This respects the flags passed to the top level make as well as invoking the correct binary if the default is overridden on the command line.
The change fixes an ITS build failure on FreeBSD, which used
gmake MAKE=gmake EMULATOR=...
to recursively build everything using GNU make (gmake) instead of BSD make.Tested on FreeBSD 13.1 using clang 13.0.0 (default compiler) and sanity checked on MacOS Monterey 12.6.2 using clang 14.0.0 (Xcode 14.1). (MacOS uses GNU make by default.)