There is a startup called Unspun that wants to make many types of clothing production fully automated by weaving the complete end product in place. Similar to how socks are woven today.
The current way to make a "finished" clothing product is called "whole garment knitting". Only two companies make machines that can do this; designing the garments is a pain with the current software stack. Most clothing is "cut and sew" -- you make a simple sheet of knitted material and cut and sew a garment out of that sheet. It is wasteful and heavily reliant on cheap labor.