The process in which the anatomical structures of the lung are generated and organized. [ GOC:dph ]