Turkey has several long term goals in this fight. Exploit the collapse of the Syrian regime to take control of the Syrian coast and by extension, off shore oil rights. To ensure the Kurds never get their own country. And end the fighting so Turkey can send all the refugees home. Bear in Assad must keep those oil rights if he intends to pay off Russia.