a means to an endsomething that you are not interested in but that you do because it will help you to achieve something else. Mike doesn't have any professional ambitions. For him, work is just a means to an end. (not used with the)
IdiI()
Cambridge International Dictionary of Idioms © Cambridge University Press 1998
a means to an endsomething done to achieve something else. You may get tired of regular physical exercise, but it's simply a means to an end.
IdiA()
Cambridge Dictionary of American Idioms © Cambridge University Press 2003