A big lot of unaware people shed their happiness in order to make people around them happy. They lose themselves in order to gain the validation of those who probably are not aware of what is going on in their own inner world.
Or we may change the equation.
And adopt the equation that is perfectly right.
In order to make others happy, simply be happy. Just be happy for the wonderful person you are. Nothing infects as much as these vibes of yours.