Complete rewrite for the 'redhat-dist' target.