If a sub-make fails, then the build will still happily continue. I will attach a patch I have been using in the Debian package for a while.
Created attachment 2 [details] [review] fail on submake failure patch
*** Bug 94739 has been marked as a duplicate of this bug. ***
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.