Source

stone / configure

#!/bin/sh

BIN_DIR="."

if [ "$1" == "--bin-dir" ]; then
    BIN_DIR="$2"
fi

cp Makefile.in Makefile

if [ "$BIN_DIR" != "." ]; then
    echo -e "
install: stone
\tcp stone $BIN_DIR/

uninstall:
\trm -f $BIN_DIR/stone
" >> Makefile
fi