X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=clean.mk;h=bd9f607d2f9d92ffc3b930432b85628c7c15177d;hb=5a1d5e778e85664f4e6657019348b4756b16eacb;hp=591147a2cb6e214a8db83d4c1b4adce254fedb80;hpb=72b7e8dadd92279596c0f56649775fc056acf449;p=fw%2Fsdcc diff --git a/clean.mk b/clean.mk index 591147a2..bd9f607d 100644 --- a/clean.mk +++ b/clean.mk @@ -3,12 +3,12 @@ clean: rm -f *core *[%~] *.[oa] rm -f .[a-z]*~ - find bin -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 # ----------------------------------------------------------------- distclean: clean - rm -f config.cache config.log config.status Makefile.common + rm -f config.cache config.log config.status Makefile Makefile.common rm -f sdccconf.h main.mk *.dep rm -f ports.all ports.build