From 39d7067f7fad0b76c9bc712684b6fc4e22ed4d81 Mon Sep 17 00:00:00 2001 From: rillig Date: Thu, 3 Nov 2005 19:29:54 +0000 Subject: Added the default value of CONFIGURE_DIRS. Rewrote the ``build'' phase description to have the same structure as the ``configure'' phase description. --- doc/guide/files/build.xml | 53 +++++++++++++++++++++++++++++++---------------- 1 file changed, 35 insertions(+), 18 deletions(-) (limited to 'doc/guide') diff --git a/doc/guide/files/build.xml b/doc/guide/files/build.xml index aefbe379a98..9d992b2dc96 100644 --- a/doc/guide/files/build.xml +++ b/doc/guide/files/build.xml @@ -1,4 +1,4 @@ - + The build process @@ -342,13 +342,15 @@ happens in the configure phase is roughly: .endfor -CONFIGURE_DIRS is a list of pathnames relative -to WRKSRC. In each of these directories, the -configure script is run with the same environment and arguments. The -variables CONFIGURE_ENV, -CONFIGURE_SCRIPT (default: -./configure) and CONFIGURE_ARGS may -all be changed by the package. +CONFIGURE_DIRS (default: .) is a +list of pathnames relative to WRKSRC. In each of +these directories, the configure script is run with the environment +CONFIGURE_ENV and arguments +CONFIGURE_ARGS. The variables +CONFIGURE_ENV, CONFIGURE_SCRIPT +(default: ./configure) and +CONFIGURE_ARGS may all be changed by the +package. If the program uses an Imakefile for configuration, the appropriate steps can be invoked by setting @@ -361,16 +363,31 @@ being run, set USE_X11BASE instead.) The <emphasis>build</emphasis> phase - Once configuration has taken place, the software will be built - by invoking $MAKE_PROGRAM on - $MAKEFILE with $BUILD_TARGET as - the target to build. The default MAKE_PROGRAM is - gmake if USE_TOOLS contains gmake, - make otherwise. MAKEFILE is set to - Makefile by default, and BUILD_TARGET - defaults to all. Any of these variables - can be set in the package's Makefile to change the default - build process. +For building a package, a rough equivalent of the following code +is executed. + + + .for d in ${BUILD_DIRS} + cd ${WRKSRC} && cd ${d} && env ${MAKE_ENV} \ + ${MAKE_PROGRAM} ${BUILD_MAKE_FLAGS} \ + -f ${MAKEFILE} ${BUILD_TARGET} + .endfor + + +BUILD_DIRS (default: .) is a +list of pathnames relative to WRKSRC. In each of +these directories, MAKE_PROGRAM is run with the +environment MAKE_ENV and arguments +BUILD_MAKE_FLAGS. The variables +MAKE_ENV, BUILD_MAKE_FLAGS, +MAKEFILE and BUILD_TARGET may all +be changed by the package. + +The default value of MAKE_PROGRAM is +gmake if USE_TOOLS contains +gmake, make otherwise. The default value +of MAKEFILE is Makefile, and +BUILD_TARGET defaults to all. -- cgit v1.2.3