Change Between Gnu Make and Clearmake Compilers During a Build

Is it possible to switch from Clearmake to GNU make at a certain point in a build and then switch back? If so, how so?

1 Answer

Note, neither GNU make nor clearmake are compilers.

All make versions are just tools for running other commands, so you can just write a rule that will run a different make as a command:

run-make:
        gmake do-something

Now when the run-make rule is invoked it will call GNU make (here called gmake, but it might be called make or whatever) to build a target do-something. Once that's done it'll return back to the current make version (presumably clearmake).

With the minimal information you provided, that's the best we can do.

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Maya Lin-Takahashi

Maya Lin-Takahashi

Consumer Tech & Gadget Reviewer

Maya is a hardware enthusiast who tests and reviews smart home devices, smartphones, wearables, and audio gear. She focuses on practical consumer value and build quality.

Share this article
Twitter Facebook Pinterest