Part of the problem in the UK is caused by the deliberate conflation of the terms "refugee" and "immigrant". Immigrants, including those Brits currently living and working in Spain (particularly Benidorm) generally move legally to the foreign country, often having a job waiting for them when they arrive (eg: Chinese workers arriving in the US to work in laundries and Chinese restaurants).
Refugees on the other hand are defined as "someone who has been forced to flee his or her country because of persecution, war or violence. A refugee has a well-founded fear of persecution for reasons of race, religion, nationality, political opinion or membership in a particular social group. Most likely, they cannot return home or are afraid to do so. War and ethnic, tribal and religious violence are leading causes of refugees fleeing their countries."
The vast majority of people attempting to reach the UK are people displaced by UK aided military action in Syria, Afghanistan, Iraq and Yemen. If we insist on exporting weapons to known human rights abusing regimes, we shouldn't complain about importing the end product - refugees.