GO:0048808: male genitalia morphogenesis
The process in which the anatomical structures of male genitalia are generated and organized.