Either a habitational name for someone from any of several places called Machern, for example one near Leipzig. From an ancient Germanic personal name formed with mag "kinsman" or magan "might" and hari "army". Or a nickname from Middle High German macher "doer".