# Directory where executables are installed.
export MTXBIN="$SAGE_LOCAL"/bin

# Field size up to GF(256)
export ZZZ=0

# We create a directory for the multiplication tables
if [ "x$MTXLIB" = x ] ; then
    mkdir -p $SAGE_SHARE/meataxe || \
    sdh_die "Error creating directory for multiplication tables"
else
    mkdir -p $MTXLIB || \
    sdh_die "Error creating directory for multiplication tables"
fi

cd src
sdh_configure
sdh_make
sdh_make_install

if [ "$SAGE_SPKG_INSTALL_DOCS" = yes ] ; then
    $MAKE doc || sdh_die "Error documenting SharedMeatAxe"
fi
