My home world is set to "manufacturing focus" and "military subsidies."
The Military Subsidies project sets the spending to 100% Military Production for the planet.
actually, if I understand correctly, the way militarysubsidies work is anything left after social projects are completed goes to military. So if your world is making 200 production and your last turn of an upgrade consumes 50 of those, then 150 goes to the shipyard. Each following turn while the planet's build queue is empty the shipyard gets the full 200 points. If you then research a better facility the governor will drop a bunch of upgrades in the queue and the shipyard will get nothing at all until those upgrades finish.
Do I understand correctly?