This aspect, IMO is covered under the head Samma Sankappa (Right/ Highest/ Optimum Purpose / Intention) of the 8 fold path.
SN45.8
And what is right purpose?
It is the purpose of renunciation, good will, and harmlessness.
Why do we do what we do? For the sake of sensual pleasures.
MN14
a gentleman earns a living by means such as arithmetic, accounting, calculating, farming, trade, raising cattle, archery, government service, or one of the professions.
But this approach is full of drawbacks…. MN 14 lists them all!
To give up the craving for sensual pleasures we first need to develop a modicum of Right View. What should be the motivation to act? Love and Compassion (MN 141). We should seek to act for the benefit of both oneself and others (AN 8.26).
To actualize these teachings, one needs to examine one’s motivation in depth. Unfortunately humans are adept at pulling the wool over their own eyes! Its only when we truly understand what we really want that we can figure out what direction our life should take.

A personal example
For example, people often ask me why I chose to become a physician. For years, I replied with the formulaic “I wanted to help others.. serve society… blah, blah…
“. It took much introspection to admit that actually, I had no clue. I just happened to be academically proficient. What was the motivation to study? It was a way to please my parents and teachers. Why medicine? Because society had decreed that I had to have an occupation and everyone around me said that this would be a good fit. And yes, there was a secret sense of conceit… a bit of ‘see what a great guy I am!’.
Once you are suckered onto that treadmill, there’s no getting off.. its an endless of cycle of trying to better than everyone else while being blown hither thither by the 8 worldly winds (AN8.6).
And then I encountered Sickness - the second messenger (AN3.36).
See, Sickness was something that happened to other people… something that I treated. Me and Mine? Definitely above all that. I was Managing Director of the Universe. 
To personally experience the helplessness of being a parent whose child developed an incurable condition was to put it mildly, shocking!
Searching for a way to relieve that pain, I came across the Buddha’s Teaching.
I’m still a practicing physician. I live and work in a city of obscene wealth disparity. Having gotten off the treadmill, I choose to live simply .. being happy with what I am paid serving the economically worst off. My motivations have changed for the better. I do the best I can to manifest the causes of health and happiness in those I encounter. And I no longer blame myself when Life decides otherwise.