Hamas can't sign The Geneva Convention, because they aren't a country, silly cunt. In government, they can sign but that's like saying The Conservative Party signed the Geneva Convention but Labour didn't.
If bombing civilians is legal, then the holocaust was for the same reason.