#!/usr/bin/env bash if [ -z "$1" ] then printf "Usage: setup.sh install_directory [dependencies].\n" 1>&2 exit 1 fi # $2 gklib cd $(dirname $0) libname=$(basename $(pwd)) make config prefix="$1" gklib_path="$2" make install -j8