Of course trying to get nukes will make the Americans attack, so you try to hide it, unless you already are doing stuff that are making the Americans make attacking noises so then you start to ramp up the nuke production because maybe you can get some and stop the Americans or maybe the Americans will back off if you agree to back off with the nuke production.
on edit: so in other words, people try to get nukes as deterrents, not as status enhancers. You might want to deter a neighbor of course, like Pakistan and India, but there are countries in almost every region that might want to deter the U.S should it be necessary. I suppose in the near future countries may also wish to deter China.