The MathWorks build system is documented here.
The original buildroot documentation can be found here.