changeset 26409:2deb4c25db1c

Replace shell for loop by proper make foreach construct.
author diego
date Sun, 13 Apr 2008 21:13:05 +0000
parents 7a36d5941fd8
children 210f869a7a31
files Makefile
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/Makefile	Sun Apr 13 19:18:51 2008 +0000
+++ b/Makefile	Sun Apr 13 21:13:05 2008 +0000
@@ -385,7 +385,7 @@
           gui/mplayer/gtk/*~ gui/skin/*.o gui/skin/*~ \
           gui/wm/*.o gui/wm/*~ gui/win32/*.o gui/win32/*~
 	for part in $(PARTS); do $(MAKE) -C $$part clean; done
-	for dir in $(DIRS); do rm -f $$dir/*.o $$dir/*.a $$dir/*.ho $$dir/*~ ; done
+	rm -f $(foreach dir,$(DIRS),$(foreach suffix,/*.o /*.a /*.ho /*~, $(addsuffix $(suffix),$(dir))))
 
 distclean:: doxygen_clean
 	for part in $(PARTS); do $(MAKE) -C $$part distclean; done