#! /bin/sh
(cd src/SYMPHONY; 
  if test -f Makefile; then
    make distclean || true
    make distclean SUBDIRS= || true
  fi)
  
rm -f config.* autom4te.cache src/SYMPHONY.ts src/Makevars
rm -rf src/SYMPHONY/lib
rm -rf src/SYMPHONY/bin

if [ "$OSTYPE" = "linux-gnu" ]; then
  echo "linux-gnu"
  rm -rf src/WinLib
elif [ "$OSTYPE" = "darwin"* ]; then
  echo "darwin"
  rm -rf src/WinLib
fi

exit 0
