Just to clarify, making a gun is legal in the US, for anyone legally able to possess one.
Provided that the gun in question is not automatic. Automatic means either that specially trained ATF technicians are able to coax it into firing more than once with a single pull of the trigger, or that it uses an open breech design.
Open breech means that the gun rests with the bolt back. Pulling the trigger releases the bolt to move forward into battery, where the gun fires. Special parts are needed to cause the gun to stop after a single shot, and the easy removal of those parts makes the gun automatic, even if those parts are present.
By contrast, in a closed breech gun, the trigger releases a firing pin or striker, starting the cycle. Special parts are needed to prevent the gun from firing again until the bolt returns to battery. Removal of those parts turns it into a nightmare machine, unable to reliably contain the pressure of the burning propellant.
But a closed breech allows a disconnect in the action, requiring that the trigger release for each cycle. Without those parts, or with worn parts, the gun is an automatic. With those parts, it is semi-automatic, or self-loading. Or, a lever allows the user to select between the two, making a select-fire gun.
To summarize:
Open breech = automatic (by decree)
Closed breech, disconnector = semi-automatic
Closed breech, no disconnector, or selectable disconnect = automatic.
Private ownership of automatics requires special licensing of the owner, and a special tax stamp paid on the gun. Those stamps have not been issued since 1986, but owner licenses are available.
An ordinary person can also get licensed to manufacture automatics, but because the ATF won't issue a stamp for their product, they can't make an automatic for personal use. They can only use that license only to make guns for entities that do not require NFA stamped guns, which basically means military and law enforcement.
Or, a person can get licensed to possess an automatic, and purchase a pre-1986 stamped gun. (Note that conversion devices like the Lightning like and the Drop-In Auto Sear [DIAS] count as guns here, as far as the law is concerned, even though they aren't guns.) Expect to spend about $10k getting started in this hobby.
Luty's SMG is an open breech design. Don't even think about building one. But the book is a good read. It will help you understand how the Taliban held off two global super-powers mostly using guns they made themselves. In caves. With hand tools.
Note 1: Conversion of an AR-15-clone is simple. Drill one hole in the right place, drop in one part, one spring and one roll pin, potentially swap out a few other parts, depending on the exact design of your clone, and you are done. But drill that hole without proper authorization and you are looking a 10 year felony sentence.
Note 2: Since we are living in a post-Constitutional, post-Rule of Law era, any owner of a semi-automatic gun can be arrested and charged for NFA violations at any time. The ATF technicians have years of experience getting guns to double fire, and access to soft primers that will fire nearly unprovoked. They also have all the time in the world to tinker with your gun, and they get paid a salary to do it. They will get your gun to double fire at least once, and away you go.