0.8.6.1:
[sbcl.git] / clean.sh
index bf5f974..4b84302 100755 (executable)
--- a/clean.sh
+++ b/clean.sh
@@ -22,6 +22,10 @@ rm -rf obj/* output/* doc/user-manual \
 # distribution, we automatically clean up after it here in the 
 # standard clean.sh file.)
 
+# Ensure we know GNUMAKE
+. find-gnumake.sh
+find_gnumake
+
 # Ask some other directories to clean themselves up.
 original_pwd=`pwd`
 for d in tools-for-build; do
@@ -31,7 +35,7 @@ for d in tools-for-build; do
     # this script is just the operations done by these make's, which
     # is misleading when this script does lotso other operations too.
     # -- WHN
-    make -s clean
+    $GNUMAKE -I ../src/runtime -s clean
     cd $original_pwd  > /dev/null
 done
 
@@ -50,7 +54,7 @@ done
 #     probably machine-generated translation of DocBook (*.sgml) files
 #   core
 #     probably a Unix core dump -- not part of the sources anyway
-#   *.o, *.lib, *.nm
+#   *.o, *.so, *.lib, *.nm, a.out
 #     results of C-style linking, assembling, etc.
 #   *.core, *.map
 #     looks like SBCL SAVE-LISP-AND-DIE or GENESIS output, and
@@ -69,6 +73,8 @@ done
 #   *.lisp-obj, *.fasl, *.x86f, *.axpf, *.lbytef, *.lib
 #     typical extensions for fasl files (not just from SBCL, but
 #     from other Lisp systems which might be used as xc hosts)
+#   test-passed
+#     generated by automatic directory-test-thyself procedure
 find . \( \
        -type l -o \
        -name '*~' -o \
@@ -90,7 +96,10 @@ find . \( \
        -name '*.target-obj' -o \
        -name '*.lib' -o \
        -name '*.tmp' -o \
+       -name '*.lisp-temp' -o \
        -name '*.o' -o \
+       -name '*.so' -o \
+       -name 'a.out' -o \
        -name 'sbcl' -o \
        -name 'sbcl.h' -o \
        -name 'depend' -o \