Used emake instead of make, specified distdir explicitly in the make commands.