2005-05-04 08:44:45 +02:00
|
|
|
# $NetBSD: make.mk,v 1.6 2005/05/04 06:44:45 jlam Exp $
|
2005-05-02 23:10:02 +02:00
|
|
|
#
|
|
|
|
# This Makefile fragment creates a tool called "make" under ${TOOLS_DIR}
|
|
|
|
# that corresponds to the make program used to build the package.
|
|
|
|
# This lets a bare "make" invoke the correct program if called from
|
|
|
|
# within a makefile or script. It also sets MAKE_PROGRAM to the path
|
|
|
|
# of that make program. Lastly, pass ${MAKE_PROGRAM} to GNU configure
|
|
|
|
# scripts in the MAKE variable so that the scripts will embed the
|
|
|
|
# correct correct path to the make program used to build the package
|
|
|
|
# into the generated Makefiles.
|
Initial commit of the new tools framework. This is currently designed
to be a drop-in replacement for mk/tools.mk, but isn't yet enabled
pending further testing. To use, edit bsd.pkg.mk to include bsd.tools.mk
instead of tools.mk.
The major changes from the old tools framework are:
(1) The new interface to using the tools framework is through setting
USE_TOOLS in the package Makefile, e.g.,
USE_TOOLS+= autoconf gmake yacc
(2) Bison/yacc handling is improved. Instead of adding checks for
/usr/bin/yacc to the package Makefile and explicitly setting YACC,
e.g., security/mit-krb5/Makefile, simply add "yacc" to USE_TOOLS.
If bison is explicitly required, then add "bison" to USE_TOOLS
instead.
(3) GNU auto* tools are handled differently. "autoconf", "aclocal",
"automake", etc. will be tools in ${TOOLS_DIR} that point to the
correct versions of the auto* tools. Instead of patching Makefiles
or scripts to use ${AUTOCONF}, ${ACLOCAL}, etc., the correct
versions of the tools will be called if they are invoked simply
by their bare names. This is selected by adding either "autoconf"
or "autoconf213", or "automake" or "automake14" to USE_TOOLS.
The new tools framework will deprecate the following variables:
ACLOCAL AUTORECONF
AUTOCONF BUILD_USES_GETTEXT_M4
AUTOHEADER USE_GNU_TOOLS
AUTOMAKE USE_TBL
The new tools framework will deprecate the following *.mk files:
mk/autoconf.mk
mk/automake.mk
mk/tools.mk
Additional documentation on how to use bsd.tools.mk to create new tools
under ${TOOLS_DIR} may be found in the header comments in bsd.tools.mk.
2005-04-15 02:00:21 +02:00
|
|
|
#
|
2005-05-02 23:10:02 +02:00
|
|
|
|
|
|
|
# Define MAKE_PROGRAM to be the "make" used to build the package.
|
|
|
|
.if !empty(_USE_TOOLS:Mgmake)
|
|
|
|
MAKE_PROGRAM= ${GMAKE}
|
|
|
|
.elif !empty(_USE_TOOLS:Mimake) && defined(_IMAKE_MAKE)
|
|
|
|
MAKE_PROGRAM= ${_IMAKE_MAKE}
|
|
|
|
.else
|
|
|
|
MAKE_PROGRAM= ${MAKE}
|
|
|
|
.endif
|
|
|
|
|
Initial commit of the new tools framework. This is currently designed
to be a drop-in replacement for mk/tools.mk, but isn't yet enabled
pending further testing. To use, edit bsd.pkg.mk to include bsd.tools.mk
instead of tools.mk.
The major changes from the old tools framework are:
(1) The new interface to using the tools framework is through setting
USE_TOOLS in the package Makefile, e.g.,
USE_TOOLS+= autoconf gmake yacc
(2) Bison/yacc handling is improved. Instead of adding checks for
/usr/bin/yacc to the package Makefile and explicitly setting YACC,
e.g., security/mit-krb5/Makefile, simply add "yacc" to USE_TOOLS.
If bison is explicitly required, then add "bison" to USE_TOOLS
instead.
(3) GNU auto* tools are handled differently. "autoconf", "aclocal",
"automake", etc. will be tools in ${TOOLS_DIR} that point to the
correct versions of the auto* tools. Instead of patching Makefiles
or scripts to use ${AUTOCONF}, ${ACLOCAL}, etc., the correct
versions of the tools will be called if they are invoked simply
by their bare names. This is selected by adding either "autoconf"
or "autoconf213", or "automake" or "automake14" to USE_TOOLS.
The new tools framework will deprecate the following variables:
ACLOCAL AUTORECONF
AUTOCONF BUILD_USES_GETTEXT_M4
AUTOHEADER USE_GNU_TOOLS
AUTOMAKE USE_TBL
The new tools framework will deprecate the following *.mk files:
mk/autoconf.mk
mk/automake.mk
mk/tools.mk
Additional documentation on how to use bsd.tools.mk to create new tools
under ${TOOLS_DIR} may be found in the header comments in bsd.tools.mk.
2005-04-15 02:00:21 +02:00
|
|
|
TOOLS_SYMLINK+= make
|
2005-05-04 08:44:45 +02:00
|
|
|
TOOLS_REAL_CMD.make= ${MAKE_PROGRAM}
|
2005-05-02 23:10:02 +02:00
|
|
|
|
|
|
|
CONFIGURE_ENV+= MAKE=${MAKE_PROGRAM:T:Q}
|