make

From Gentoo Wiki
Jump to:navigation Jump to:search
This article is a stub. Please help out by expanding it - how to get started.

Make is a tool to build software from source code (which usually includes compiling). makefiles contain the instructions to build packages, and these are sometimes generated with Autotools.

The make utility is specified by POSIX. Gentoo's default make implementation is GNU Make, dev-build/make (often called gmake), installed as part of the @system set. However, the main Gentoo repository also provides bmake, dev-build/bmake, derived from NetBSD's make.

Invocation

The emake function should be used to call make.

CODE Example of using emake in an ebuild
src_compile() {
	java-pkg-simple_src_compile

	pushd src/native/unix || die
		./configure
		emake AR="$(tc-getAR)"
	popd
}

See also

  • Autotools — a build system often used for open source projects.
  • Build automation — software that automates the compilation, clean up, and installation stages of the software creation process.

External resources