And even after conducting many such obnoxious, passive-aggressive, unnecessary moves, Turkey routinely feigns surprise and frustration that negotiations to become a member of the EU stalled years ago.
Turkey have no intention of joining the EU.
To be clear,
@Towered is correct that Turkey once did aspire to be a member of the E-U, and was, in fact, making real efforts to comply w/E-U asks to qualify for membership. Those included relaxing restrictions on religion (head scarf was banned in schools), greater freedom for journalists and several other moves.
@WislaHD is correct that they no longer have any expectation of joining the E-U.
The truth of the matter is the E-U didn't really want Turkey in the club, or at least some member countries did not.
They set the admission bar very high for Turkey and when Turkey got remotely close, they moved the proverbial goal posts.
Eventually, the Turkish government and people got the message.
There were some legitimate reasons to be cautious, ranging from a history of military intervention in government, to a much cheaper source of labour (Turkey is much lower-wage than Western Europe), and with a very large population (it would have been the most populous member of the E-U). Notwithstanding many legitimate concerns, its not hard to imagine that anti-Turkish/Muslim bigotry played a role in things.
France actually wanted to hold a referendum (within France, on whether Turkey could be admitted).
Cyprus has also been a thorn in the side of Turkish ascession.
For all that, the E-U could have moved with much greater haste (11 years after the start of negotiations, they hadn't even begun to look at several subjects)
In the end, the E-U set the stage for the current Erdogan; a set back, I think, for Turkey and the E-U, alike.
en.wikipedia.org