Build a distribution