How do I get emake to replace explicit calls to make? Unfortunately, my makefiles don't use $(MAKE) when calling nested makefiles, they use make explicitly.
When I do emake all, after the top-level makefile is executed, normal make is called and I lose parallelism.
Answer by eric melski · Jan 11, 2017 at 06:38 AM
It's considered a makefile "best practice" to use $(MAKE) rather than hardcoding make, as that ensures that things like --dry-run work as expected across recursive makes, and ensures that the same version of make is used throughout the build. If at all possible, you should correct your makefiles so that they use $(MAKE).
As of Accelerator 9.0 emake does not have a feature to dynamically replace make with emake in your makefiles, nor could it do so completely and robustly. However, you can make a copy of emake named make, and arrange for that binary to appear early in your PATH. That way emake will be invoked instead of your other make program.
Electric Cloud powers Continuous Delivery, helping organizations developing deliver better software faster by automating and accelerating build, test, and deployment processes at scale. Industry leaders like Qualcomm, SpaceX, Cisco, GE, Gap, and E*TRADE use Electric Cloud solutions to boost DevOps productivity and Agile throughput.