When Senegal withdrew after only a few months , what formerly made up the Sudanese Republic was renamed Mali .