Remove spurious newlines.
Allow an empty DISTDIR.
Add correct dependencies.