There was a man traveling down a road while it was raining. He came across a statue of Lord Buddha. He thought to himself, "The Buddha is getting all wet, that is not right. I shall cover his head so he doesn't get wet". He took off his shoe and put it over the Buddha's head.
Now, in those days (and even today in many parts of Asia) the act of putting something from your feet onto a Buddha's head is very disgraceful. In Thailand people don't even let their toes point at a statue of Buddha. Many people would think that man did something very wrong. However, his motivation was to protect Buddha and that single act was the eventual cause for himself to become a Buddha.
I am no expert and am just repeating what I have read elsewhere. Hopefully I did not mess the story up to bad and someone will still benefit.
So while maybe it could be argued becoming happy is selfish, actually being happy is not selfish. But then again becoming anything is selfish, I think the point is what happens after the point of becoming that thing. There is a lot of this logic in buddhism, which is why more importance is usually given to your volition for doing something than what it actually is your doing (think karma).