fixed bug #739934
[fw/sdcc] / clean.mk
index 0eba397eb0010f2fdca5b3b5584ae9081e889a79..591147a2cb6e214a8db83d4c1b4adce254fedb80 100644 (file)
--- a/clean.mk
+++ b/clean.mk
@@ -3,15 +3,14 @@
 clean:
        rm -f *core *[%~] *.[oa]
        rm -f .[a-z]*~
-       -rm -f bin/*
-
+       find bin -type f ! -name README -exec rm {} \;
 
 # Deleting all files created by configuring or building the program
 # -----------------------------------------------------------------
 distclean: clean
-       rm -f config.cache config.log config.status
+       rm -f config.cache config.log config.status Makefile.common
        rm -f sdccconf.h main.mk *.dep
-
+       rm -f ports.all ports.build
 
 # Like clean but some files may still exist
 # -----------------------------------------