those missiles are never for Israel, iran and turkey have been rivals in the region all through the history (there is not much love between the two nations), Syria is an example how both countries are approaching the matter. turkey got long borders to Syria and Iran and both these countries are very rich for the long range missiles. This is the only reason Turkey might be buying some missiles.
U.S. says working on initiative to de-escalate Syria fighting, with focus on Aleppo (Reuters)
from the article: Report: Turkey to buy $4b long-range missile system