From: borutr Date: Wed, 24 Aug 2005 20:35:57 +0000 (+0000) Subject: * clean.mk, device/lib/clean.mk: find on sparc-solaris does not support -maxdepth... X-Git-Url: https://git.gag.com/?p=fw%2Fsdcc;a=commitdiff_plain;h=52cb152bcc70bd522431080f938eb181ec3c8e84 * clean.mk, device/lib/clean.mk: find on sparc-solaris does not support -maxdepth option git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@3877 4a8a32a2-be11-0410-ad9d-d568d2c75423 --- diff --git a/ChangeLog b/ChangeLog index 5bfbaa86..e5d46f80 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2005-08-24 Borut Razem + + * clean.mk, device/lib/clean.mk: find on sparc-solaris does not support -maxdepth option + 2005-08-23 Bernhard Held * src/SDCCopt.c (convertToFcall): fixed modulus with divisors 1 and 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 # ----------------------------------------------------------------- diff --git a/device/lib/clean.mk b/device/lib/clean.mk index f1fa504c..5e65688c 100644 --- a/device/lib/clean.mk +++ b/device/lib/clean.mk @@ -8,7 +8,9 @@ clean: rm -f *.dump* rm -rf build for model in $(MODELS); do \ - find $$model -maxdepth 1 -type f ! -name Makefile -exec rm {} \; ; \ + if [ -d $$model ]; then \ + cd $$model && for name in *; do if [ -f $$name -a $$name != Makefile ]; then rm $$name; fi; done; \ + fi; \ done make -C mcs51 clean make -C ds390 clean