#!/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 ==="