Scripts for bootstrapping various programming languages
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
#!/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"
|