The Austrians didn't invade Serbia and the Germans didn't make war on Belgium, Luxemburg, France, and Serbia's ally Russia, expecting to strike oil.
And it was the oil-rich Turks who started up the war in their own part of the world several months later by bombarding the Russian port of Sebastopol. Nobody had attacked them.