updates.
[silc.git] / prepare-clean
index 9bcc5497d9602b11b12dd87a6d49a4e2e5c354ba..ee9567c6b42736048f77017efbdfcd74f5050757 100755 (executable)
 # and compilation by calling ./prepare.
 #
 
+if [ -z "$MAKE" ]; then
+       MAKE=`which gmake`
+       if [ -z "$MAKE" ]; then
+               MAKE=`which make`
+               if [ -z "$MAKE" ]; then
+                       echo "Error, no [g]make in your path."
+                       exit 0
+               fi
+       fi
+fi
+echo "Using $MAKE as a make program..."
+
 echo "Cleaning entire SILC source tree..."
 echo "All errors and warnings may be safely ignored."
-gmake clean -k
-gmake distclean -k
+$MAKE clean -k
+$MAKE distclean -k
+rm -f ltmain.sh
+rm -f ltconfig
+rm -f ltcf*
 rm -f Makefile.am
 rm -f Makefile.defines
 rm -f Makefile.defines.in
 rm -f Makefile.defines_int
 rm -f Makefile.defines_int.in
+rm -f acconfig.h
 rm -f irssi/Makefile.defines
 rm -f irssi/Makefile.defines.in
 rm -f irssi/Makefile.defines_int