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

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

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.