#!/bin/sh set -eu version_make42=4.2.1 dir_download="$PWD/download" mkdir -p build; cd build dir_install="$PWD/install-make42" # Prepare source tar xf "$dir_download/make-$version_make42.tar.bz2" cd "make-$version_make42" # Configure source CFLAGS='-D__alloca=alloca -D__stat=stat' \ ./configure \ --prefix="$dir_install" # Build and install make install -Dm755 make "$dir_install/make"