For starters you might want to look at the micro_release target in in the Makefile. Try running make micro_release: it prunes quite a lot of stuff.