The process in which the anatomical structures of the male copulatory structure in nematodes are generated and organized. The copulatory apparatus is a specialized tail structure reshaped during late post-embryonic development, that includes a fan-like arrangement of nine pairs of chemosensory organs known as rays, sclerotized spicules, the gubernaculum, the hook sensillum, and associated musculature.