Make the best of (something)

To do as well as possible in a bad situation.

The man tried to make the best of the job that he hated.