A ship will generally join a like-fleet. So if you have one fleet of LRMs and another of carriers, a new LRM will join the fleet with LRMs. If you aren't against auto-join itself and just don't like how they can get mixed up, you can set a factory's rally point onto an existing fleet (just set it on the fleet icon, you can even click it on the empire sidebar too), and any ship built from the factory will fly over to that specific fleet and join it.
That's basically how I do it, and I've learned to have 2 fleets maximum with different factories feeding them with rally points, since they are typically on different ends of the map.