Improved on depdency handling for generating mocks automatically, using recusrive make.