Were that possible, the permanently festering Middle East conflicts would already have produced them. It's not as if they don't have the intelligence and motivation; recent incidents of conversion of consumer drones into weapons being a prime example.
1. Total mobilization of the population: drafting or conscription or calling up all reserves)
2. Switching to a wartime economy, where a large portion of the economy is directed to the war effort, with government regulation and rationing of important strategic resources. This also requires a robust industrialized economy, capable of producing weaponry and performing research.
3. A prolonged conflict (which tends to be a prerequisite for 1 and 2) so that initial stockpiles have been drained.
4. Access to vital resources and equipment is cut off, due to embargoes, blockades, and interdiction of supplies.
I can't think of a Middle Eastern conflict that fits all of those criteria.
I'm guessing the reason many don't build their own is mainly because most of find it easier to buy them from the USA or Russia as part of larger geopolitical deals.
> What happens when both sides run out of their blisteringly expensive and hard to produce cruise missiles, smart air-to-ground missiles, and so forth?
Depends on the level collapse of civilization, but some sort repurposed detritus from our consumer culture. Weaponized SodaStreams, Keurigs and DJI drones.
Seems improbable. The lead time for the gargantuan supply chain necessary to put together modern high-tech military hardware is so lengthy that the war would probably be over one way or another by the time ramp up is complete and that's without accounting for any efforts by the opponent to interfere with production or embargo raw material supplies.
What happens when both sides run out of their blisteringly expensive and hard to produce cruise missiles, smart air-to-ground missiles, and so forth?