updates
authorPekka Riikonen <priikone@silcnet.org>
Sat, 3 Nov 2001 21:45:03 +0000 (21:45 +0000)
committerPekka Riikonen <priikone@silcnet.org>
Sat, 3 Nov 2001 21:45:03 +0000 (21:45 +0000)
prepare-clean

index 2e4760a3c993fb48a0d9172b870818c01b7e1fee..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*