A lot of the cozying up is for military reasons I think. Turkey is part of NATO and has 612,900 active personnel against 180,676 from Germany and 205,851 from the UK and also a strategic position bordering Syria, Iraq and Iran so we're kind of forced to be a bit friendly in spite of Erdogan's failings.