The phenomenon of war is its hermaphroditism: the principles of victory and of defeat inhabit the same body and the necessary opponent, enemy, is merely the bed they self-exhaust each other on.
War is an episode, a crisis, a fever the purpose of which is to rid the body of fever. So the purpose of a war is to end the war.