X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=clean.mk;h=6ccdb05b1b072e76d771c7e31c14140960d27fae;hb=916b7e4011f58680d6006400c274310fb1659a7e;hp=f12741344a18d5bedd7500a07eacbc1c3f2968ce;hpb=d3e9a3c6e43e6623ed168709704e410609302ddd;p=fw%2Fsdcc diff --git a/clean.mk b/clean.mk index f1274134..6ccdb05b 100644 --- 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 # -----------------------------------------------------------------