FORGET about building a legacy and just do something. If you consistently do good things, you'll have a legacy. It's true for presidents, companies, fathers, and basketball programs.
Anyone that focuses on their legacy is doing it backwards--and is probably a self-centered dolt (primarily thinking of US presidents that focus on their legacy.).