--- trunk/mk/clean-rules.gmk 2011/05/05 01:30:20 1112 +++ trunk/mk/clean-rules.gmk 2011/05/05 04:11:52 1113 @@ -1,6 +1,6 @@ # Common makerules for cleaning directory trees. # -# COPYRIGHT (c) 2007 The Manticore Project (manticore.cs.uchicago.edu) +# COPYRIGHT (c) 2011 The Diderot Project (http://diderot-language.cs.uchicago.edu) # All rights reserved. # # This file defines standard rules for the clean, distclean, and devclean @@ -9,7 +9,8 @@ # CLEAN_SUBDIRS -- subdirectories to recursively clean # CLEAN_FILES -- extra files to remove for clean target # The default is to remove CM subdirectories, -# .o files, .mbi files, and the $(TARGET). +# .o files, .so files, .a files, .dSYM directories +# and the $(TARGET). # DISTCLEAN_FILES -- extra files to remove for distclean target # The default is to remove Makefile. # DEVCLEAN_FILES -- extra files to remove for devclean target @@ -18,7 +19,7 @@ CLEAN_FILES += $(wildcard *.o) \ $(wildcard *.so) \ $(wildcard *.a) \ - $(wildcard *.mbi) \ + $(wildcard *.dSYM) \ $(TARGET) DISTCLEAN_FILES += Makefile @@ -32,7 +33,7 @@ fi local-clean: - -rm -f $(CLEAN_FILES) + -rm -rf $(CLEAN_FILES) find . \( -name .cm -exec rm -rf {} \; -prune -print \) clean: sub-clean local-clean