#!/bin/sh

#--------------------------------------------------------------
# Does the location entered in the build procedure still exist?
#--------------------------------------------------------------
if [ -f .binLocation ]; then
    . .binLocation
else
    binLocation=${1:-$BINDIR}

    #-------------------------------
    # Validate cleanup process.
    #-------------------------------
    if [ "$binLocation" = "" ]; then
        echo ""
        echo "Usage: clean directory"
        echo ""
        echo "  Please supply the location where the expander"
        echo "  package executables currently reside as the "
        echo "  first parameter to the clean up program."
        echo ""
        exit 0
    fi
fi

#---------------------
# Destroy executables.
#---------------------
make BINDIR=$binLocation uninstall
