yes it was a civil war, undeniably which you have to understand its origin. Hamas won the 2006 election but unable to form a government due to the international pressure. such incident also occur around the world, with notable elections in myanmar, guatemala, and venezuela. what i am refuting however is your statement that implies that hamas was taking the government by force.
the mecca agreement was in place to ensure both hamas and fatah could find a delicate feasible rights as an outcome of the election. true enough, post 2007, the Fatah led government become essentially functionless, as what i mentioned earlier