mirror of
https://github.com/crosstool-ng/crosstool-ng.git
synced 2025-03-11 15:04:19 +00:00
Also, rename "build" -> "for_build", since we're going to have a "for_host" as well. Signed-off-by: Alexey Neyman <stilor@att.net>
34 lines
982 B
Bash
34 lines
982 B
Bash
# Build script for make
|
|
|
|
do_companion_tools_make_get() {
|
|
CT_GetFile "make-${CT_MAKE_VERSION}" \
|
|
{http,ftp,https}://ftp.gnu.org/gnu/make
|
|
}
|
|
|
|
do_companion_tools_make_extract() {
|
|
CT_Extract "make-${CT_MAKE_VERSION}"
|
|
CT_DoExecLog ALL chmod -R u+w "${CT_SRC_DIR}/make-${CT_MAKE_VERSION}"
|
|
CT_Patch "make" "${CT_MAKE_VERSION}"
|
|
}
|
|
|
|
do_companion_tools_make_for_build() {
|
|
CT_DoStep EXTRA "Installing make"
|
|
mkdir -p "${CT_BUILD_DIR}/build-make"
|
|
CT_Pushd "${CT_BUILD_DIR}/build-make"
|
|
|
|
CT_DoLog EXTRA "Configuring make"
|
|
CT_DoExecLog CFG "${CT_SRC_DIR}/make-${CT_MAKE_VERSION}/configure" \
|
|
--prefix="${CT_BUILDTOOLS_PREFIX_DIR}"
|
|
|
|
CT_DoLog EXTRA "Building make"
|
|
CT_DoExecLog ALL make
|
|
|
|
CT_DoLog EXTRA "Installing make"
|
|
CT_DoExecLog ALL make install
|
|
if [ "${CT_MAKE_GMAKE_SYMLINK}" = "y" ]; then
|
|
CT_DoExecLog ALL ln -sv make "${CT_BUILDTOOLS_PREFIX_DIR}/bin/gmake"
|
|
fi
|
|
CT_Popd
|
|
CT_EndStep
|
|
}
|