We can call this "the progress principle": Pleasure comes more from making progress toward goals than from achieving them. Shakespeare captured it perfectly: "Things won are done; joy's soul lies in the doing."
The Happiness Hypothesis: Putting Ancient Wisdom to the Test of Modern Science (ed. Random House, 2015) - ISBN: 9781448166688