Geneva convention, yes, Geneva convention says this and that.
But in practices, during Korea and Vietnam wars, USA troops simply killed A LOT OF civilians, they simply said: they cannot distinguish civilians from militaries, maybe they don't care at all.
The issue is (again):
Your nation is at war, so both your civilians and militaries are ONE, supporting your nation's war, if not ALL of the people, at least the majority of the people.
Also, in "democracies", civilians have RIGHT to stop wars, don't they?
Also, if your nation wins the war, your civilians will benefit from this winning, if your nations loses the war, your civilians will pay for the price too.
Also, fact is: many civilians PRODUCE or HELP to PRODUCE the weapons for their militaries to KILL enemy.
SO: if you want nobody to suffer from the war, better stop the war.