#!/bin/sh

mkdir -p build
rm -f icons/big/*.ml_icon
rm -f icons/small/*.ml_icon
rm -f icons/*.ml_icon
rm -f *.cma *.cmxa *.a
rm -f mlgnut mlnap mlbt mldonkey mlslsk mldonkey_gui*
rm -f build/*.cma build/*.cmxa build/*.a
touch .depend
if [ -d config ]
then
	cd config; ./configure $*
else
	echo "Missing config/ directory. Re-download mldonkey"
fi
