set -x LIB=$1 DIR=$2 MDIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" rm -f $LIB/Makefile ln -s $MDIR/Makefile-template $LIB/Makefile