On `make clean', kill the core files produced, which are of the form:
[oota-llvm.git] / Makefile.common
index 6d1698e2bab9c9969fa6350e65e9412add84b90c..d58b118741772c4b65a9e998ca39d0ea1c4b1547 100644 (file)
@@ -470,7 +470,7 @@ $(BUILD_ROOT)/Debug/%.o: %.c $(BUILD_ROOT)/Debug/.dir
 # 'make clean' nukes the tree
 clean::
        $(VERB) rm -rf $(BUILD_ROOT)/Debug $(BUILD_ROOT)/Release $(BUILD_ROOT)/Profile $(BUILD_ROOT)/Depend
-       $(VERB) rm -f core *.o *.d *.so *~ *.flc
+       $(VERB) rm -f core core.[0-9][0-9]* *.o *.d *.so *~ *.flc
 
 # If dependancies were generated for the file that included this file,
 # include the dependancies now...