Files
darkforge/toolchain/scripts/165-make.sh
2026-03-20 15:09:30 +01:00

36 lines
1001 B
Bash
Executable File

#!/bin/bash
# ============================================================================
# DarkForge Linux — Phase 3, Chapter 8: make
# ============================================================================
# Purpose: Build GNU make (final version). This is the FULL build,
# replacing the temporary make built in Phase 0.
# Inputs: /sources/make-4.4.1.tar.gz
# Outputs: make binary in /usr/bin/, libraries in /usr/lib/
# Assumes: Running inside chroot
# Ref: LFS 13.0 §8.71
# ============================================================================
set -euo pipefail
source /sources/toolchain-scripts/100-chroot-env.sh
PACKAGE="make"
VERSION="4.4.1"
echo "=== Building ${PACKAGE}-${VERSION} (Full) ==="
cd /sources
tar -xf "${PACKAGE}-${VERSION}.tar.gz"
cd "${PACKAGE}-${VERSION}"
./configure --prefix=/usr
make
# Optional: run tests
# make check || true
make install
cd /sources
rm -rf "${PACKAGE}-${VERSION}"
echo "=== ${PACKAGE}-${VERSION} complete ==="