remove deprecated Makefiles and move mains into pkgs