#!/bin/bash
# SPDX-License-Identifier: GPL-3.0-or-later
# Copyright (C) 2015-2016, 2026 InterGenJLU
#
# gawk 5.3.2 (temporary tools)
# LFS 13.0 Section 6.9

configure() {
    set -e
    # LFS: prevent installation of unnecessary extras
    sed -i 's/extras//' Makefile.in

    ./configure --prefix=/usr                      \
                --host=$IGOS_TARGET                \
                --build=$(build-aux/config.guess)
}

build() {
    set -e
    make -j${IGOS_JOBS}
}

install() {
    set -e
    make DESTDIR=$IGOS install
}
