Gentoo Development Guide

Emerge and Ebuild Relationships

How emerge, ebuild and foo.ebuild interact

The emerge program is a high level wrapper for that handles dependency tracking, safe installs and uninstalls and so on. emerge calls during the build process, which in turn handles the ebuild file and any eclasses. The ${D} to ${ROOT} install is handled by emerge.