The production facilities supporting armed forces ARE legitimate targets. If a city wants to be removed as a target, there are requirements for it to be declared an "open city", with rules as to access by the two sides , and what can be supplied by it to either combatant.