* clean.mk, device/lib/clean.mk: find on sparc-solaris does not support -maxdepth...
[fw/sdcc] / clean.mk
index 62a746d0658313c4cc99e517118e1ea00d14a349..6ccdb05b1b072e76d771c7e31c14140960d27fae 100644 (file)
--- a/clean.mk
+++ b/clean.mk
@@ -3,7 +3,7 @@
 clean:
        rm -f *core *[%~] *.[oa]
        rm -f .[a-z]*~
-       find bin -maxdepth 1 -type f ! -name README -exec rm {} \;
+       cd bin && for name in *; do if [ -f $$name -a $$name != README ]; then rm $$name; fi; done
 
 # Deleting all files created by configuring or building the program
 # -----------------------------------------------------------------