The chemical reactions and pathways resulting in the formation of membrane lipids, any lipid found in or associated with a biological membrane.