X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=clean.mk;h=6ccdb05b1b072e76d771c7e31c14140960d27fae;hb=52cb152bcc70bd522431080f938eb181ec3c8e84;hp=62a746d0658313c4cc99e517118e1ea00d14a349;hpb=11979e848b68c5b93ff18a4c45d97fcd8afe59f4;p=fw%2Fsdcc diff --git a/clean.mk b/clean.mk index 62a746d0..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 # -----------------------------------------------------------------