Browse Source

- less verbose make clean

Bernhard Reutner-Fischer 15 years ago
parent
commit
b74c3aa1a9
58 changed files with 207 additions and 209 deletions
  1. 10 11
      Makefile.in
  2. 6 6
      Makerules
  3. 2 2
      Rules.mak
  4. 3 4
      extra/locale/Makefile.in
  5. 2 2
      ldso/ldso/Makefile.in
  6. 2 2
      ldso/libdl/Makefile.in
  7. 2 2
      libc/Makefile.in
  8. 4 4
      libc/inet/Makefile.in
  9. 4 4
      libc/inet/rpc/Makefile.in
  10. 4 4
      libc/misc/assert/Makefile.in
  11. 4 4
      libc/misc/ctype/Makefile.in
  12. 4 4
      libc/misc/dirent/Makefile.in
  13. 4 4
      libc/misc/error/Makefile.in
  14. 4 4
      libc/misc/file/Makefile.in
  15. 4 4
      libc/misc/fnmatch/Makefile.in
  16. 4 4
      libc/misc/ftw/Makefile.in
  17. 4 4
      libc/misc/glob/Makefile.in
  18. 4 4
      libc/misc/gnu/Makefile.in
  19. 4 4
      libc/misc/internals/Makefile.in
  20. 4 4
      libc/misc/locale/Makefile.in
  21. 4 4
      libc/misc/mntent/Makefile.in
  22. 4 4
      libc/misc/pthread/Makefile.in
  23. 4 4
      libc/misc/regex/Makefile.in
  24. 4 4
      libc/misc/search/Makefile.in
  25. 4 4
      libc/misc/statfs/Makefile.in
  26. 4 4
      libc/misc/syslog/Makefile.in
  27. 4 4
      libc/misc/sysvipc/Makefile.in
  28. 4 4
      libc/misc/time/Makefile.in
  29. 4 4
      libc/misc/ttyent/Makefile.in
  30. 4 4
      libc/misc/utmp/Makefile.in
  31. 4 4
      libc/misc/wchar/Makefile.in
  32. 4 4
      libc/misc/wctype/Makefile.in
  33. 4 4
      libc/misc/wordexp/Makefile.in
  34. 4 4
      libc/pwd_grp/Makefile.in
  35. 4 4
      libc/signal/Makefile.in
  36. 4 4
      libc/stdio/Makefile.in
  37. 4 4
      libc/stdlib/Makefile.in
  38. 4 4
      libc/stdlib/malloc-simple/Makefile.in
  39. 4 4
      libc/stdlib/malloc-standard/Makefile.in
  40. 4 4
      libc/stdlib/malloc/Makefile.in
  41. 4 4
      libc/string/Makefile.in
  42. 2 2
      libc/sysdeps/linux/Makefile.commonarch
  43. 4 4
      libc/sysdeps/linux/common/Makefile.in
  44. 4 4
      libc/termios/Makefile.in
  45. 4 4
      libc/unistd/Makefile.in
  46. 2 2
      libcrypt/Makefile.in
  47. 2 2
      libintl/Makefile.in
  48. 2 2
      libm/Makefile.in
  49. 2 2
      libnsl/Makefile.in
  50. 3 3
      libpthread/linuxthreads.old/Makefile.in
  51. 2 2
      libpthread/linuxthreads.old/sysdeps/sh64/Makefile.arch
  52. 3 3
      libpthread/linuxthreads.old_db/Makefile.in
  53. 3 3
      libpthread/linuxthreads/Makefile.in
  54. 3 3
      libpthread/linuxthreads_db/Makefile.in
  55. 2 2
      libresolv/Makefile.in
  56. 2 2
      librt/Makefile.in
  57. 2 2
      libutil/Makefile.in
  58. 2 2
      utils/Makefile.in

+ 10 - 11
Makefile.in

@@ -1,6 +1,6 @@
 # Makefile for uClibc
 #
-# Copyright (C) 2000-2005 Erik Andersen <andersen@uclibc.org>
+# Copyright (C) 2000-2008 Erik Andersen <andersen@uclibc.org>
 #
 # Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
 #
@@ -471,14 +471,8 @@ defconfig: extra/config/conf
 	$(Q)./extra/config/conf -d extra/Configs/Config.in \
 		-D extra/Configs/defconfigs/$(ARCH)
 
-clean:
-	$(Q)$(RM) -r lib include/bits
-	$(RM) ldso/*/*.a libpthread/*/*.a libc/*.a libcrypt/*.a libintl/*.a \
-		libm/*.a libnsl/*.a libpthread/*.a libresolv/*.a librt/*.a \
-		libutil/*.a lib/*.a \
-		include/fpu_control.h include/dl-osinfo.h include/hp-timing.h
-	+$(MAKE) -s -C test clean
-	+$(MAKE) -C utils utils_clean
+include_clean:
+	$(Q)$(RM) include/fpu_control.h include/dl-osinfo.h include/hp-timing.h
 	@set -e; \
 	for i in `(cd libc/sysdeps/linux/common/sys; ls *.h)` ; do \
 		$(RM) include/sys/$$i; \
@@ -488,9 +482,14 @@ clean:
 			$(RM) include/sys/$$i; \
 		done; \
 	fi
+
+clean: include_clean
+	$(Q)$(RM) -r lib include/bits
+	@$(MAKE) -C utils utils_clean
+	+$(MAKE) -s -C test clean
 	@$(RM) include/linux include/asm*
-	$(RM) $(top_builddir)extra/scripts/unifdef
-	$(RM) -r $(LOCAL_INSTALL_PATH)
+	$(Q)$(RM) $(top_builddir)extra/scripts/unifdef
+	$(Q)$(RM) -r $(LOCAL_INSTALL_PATH)
 
 distclean: clean
 	-find . \( -name core -o -name \*.orig -o -name \*~ -o -name .\*.dep \) -exec $(RM) {} \;

+ 6 - 6
Makerules

@@ -91,7 +91,7 @@ pur_disp_ln        = echo "  "LN $@
 pur_disp_mkdir     = echo "  "MKDIR $@
 pur_disp_gen       = echo "  "GEN $@
 pur_disp_unifdef   = echo "  "UNIFDEF $@
-pur_disp_rm        = echo "  "CLEAN $($@)
+pur_disp_rm        = echo "  "CLEAN $(@:_clean=)
 
 sil_disp_compile.c = true
 sil_disp_compile.i = true
@@ -129,7 +129,7 @@ ver_disp_ln        =
 ver_disp_mkdir     =
 ver_disp_gen       =
 ver_disp_unifdef   = echo $(cmd_unifdef)
-ver_disp_rm        = echo $(cmd_rm)
+ver_disp_rm        =
 
 disp_compile.c = $($(DISP)_disp_compile.c)
 disp_compile.i = $($(DISP)_disp_compile.i)
@@ -201,10 +201,10 @@ define do_ln
 endef
 
 
-#define RM
-#	@$(disp_rm)
-#	$(RM_COMMAND)
-#endef
+define do_rm
+	@$(disp_rm)
+	$(Q)$(RM)
+endef
 
 compile.c = @$(call maybe_exec,compile.c)
 compile.i =  $(call maybe_exec,compile.i)

+ 2 - 2
Rules.mak

@@ -1,6 +1,6 @@
 # Rules.make for uClibc
 #
-# Copyright (C) 2000-2006 Erik Andersen <andersen@uclibc.org>
+# Copyright (C) 2000-2008 Erik Andersen <andersen@uclibc.org>
 #
 # Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
 #
@@ -129,7 +129,7 @@ comma:=,
 space:= #
 
 ifndef CROSS
-CROSS=$(subst ",, $(strip $(CROSS_COMPILER_PREFIX)))
+CROSS=$(strip $(subst ",, $(CROSS_COMPILER_PREFIX)))
 endif
 
 # A nifty macro to make testing gcc features easier

+ 3 - 4
extra/locale/Makefile.in

@@ -1,6 +1,6 @@
 # Makefile for uClibc
 #
-# Copyright (C) 2000-2006 Erik Andersen <andersen@uclibc.org>
+# Copyright (C) 2000-2008 Erik Andersen <andersen@uclibc.org>
 #
 # Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
 #
@@ -213,6 +213,5 @@ objclean-y += locale_clean
 
 # lmmtolso.c/gen_mmap.c/tst-*.c not used
 locale_clean:
-	$(RM) $(locale_HOBJ) $(locale_SRC) $(locale_OUT)/*.{o,os,txt}
-	$(RM) $(locale_OUT)/{uClibc_locale_data,lt_defines,c8tables,wctables,locale_tables,locale_collate}.h
-	$(RM) $(locale_OUT)/{lmmtolso,gen_mmap,locale.mmap}
+	$(do_rm) $(locale_HOBJ) $(locale_SRC) $(addprefix $(locale_OUT)/*., o os txt) \
+		$(addprefix $(locale_OUT)/,$(addsuffix .h,uClibc_locale_data lt_defines c8tables wctables locale_tables locale_collate) lmmtolso gen_mmap locale.mmap)

+ 2 - 2
ldso/ldso/Makefile.in

@@ -1,6 +1,6 @@
 # Makefile for uClibc
 #
-# Copyright (C) 2000-2005 Erik Andersen <andersen@uclibc.org>
+# Copyright (C) 2000-2008 Erik Andersen <andersen@uclibc.org>
 #
 # Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
 #
@@ -58,4 +58,4 @@ $($(UCLIBC_LDSO_NAME)_OUT)/$(UCLIBC_LDSO_NAME)_so.a: $(ldso-y)
 	$(do_ar)
 
 $(UCLIBC_LDSO_NAME)_clean:
-	$(RM) $($(UCLIBC_LDSO_NAME)_OUT)/*.{o,os,oS,a} $($(UCLIBC_LDSO_NAME)_OUT)/*/*.{o,os,oS}
+	$(do_rm) $(addprefix $($(UCLIBC_LDSO_NAME)_OUT)/,$(foreach e, o os oS a,$(foreach d, *. */*.,$(d)$(e))))

+ 2 - 2
ldso/libdl/Makefile.in

@@ -1,6 +1,6 @@
 # Makefile.in for uClibc
 #
-# Copyright (C) 2000-2006 Erik Andersen <andersen@uclibc.org>
+# Copyright (C) 2000-2008 Erik Andersen <andersen@uclibc.org>
 #
 # Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
 #
@@ -54,4 +54,4 @@ $(top_builddir)lib/libdl.a: $(libdl-a-y)
 	$(do_ar)
 
 libdl_clean:
-	$(RM) $(libdl_OUT)/*.{o,os,a,oS}
+	$(do_rm) $(addprefix $(libdl_OUT)/*., o os oS a)

+ 2 - 2
libc/Makefile.in

@@ -1,6 +1,6 @@
 # Makefile for uClibc
 #
-# Copyright (C) 2000-2006 Erik Andersen <andersen@uclibc.org>
+# Copyright (C) 2000-2008 Erik Andersen <andersen@uclibc.org>
 #
 # Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
 #
@@ -97,4 +97,4 @@ $(top_builddir)lib/libc.gdb: $(libc_OUT)/libc_so.a $(LINK_FLAT_CRTS)
 	$(call link-flat.so,$(@:.gdb=),$(UCLIBC_SHARED_FLAT_ID))
 
 libc_clean:
-	$(RM) $(libc_OUT)/*.{o,os,oS,a}
+	$(do_rm) $(addprefix $(libc_OUT)/*., o os oS a)

+ 4 - 4
libc/inet/Makefile.in

@@ -1,6 +1,6 @@
 # Makefile for uClibc
 #
-# Copyright (C) 2000-2006 Erik Andersen <andersen@uclibc.org>
+# Copyright (C) 2000-2008 Erik Andersen <andersen@uclibc.org>
 #
 # Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
 #
@@ -61,7 +61,7 @@ INET_OBJ := $(patsubst %.c,$(INET_OUT)/%.o,$(CSRC))
 
 libc-y += $(INET_OBJ)
 
-objclean-y += inet_objclean
+objclean-y += inet_clean
 
-inet_objclean:
-	$(RM) $(INET_OUT)/*.{o,os}
+inet_clean:
+	$(do_rm) $(addprefix $(INET_OUT)/*., o os)

+ 4 - 4
libc/inet/rpc/Makefile.in

@@ -1,6 +1,6 @@
 # Makefile for uClibc
 #
-# Copyright (C) 2000-2006 Erik Andersen <andersen@uclibc.org>
+# Copyright (C) 2000-2008 Erik Andersen <andersen@uclibc.org>
 #
 # Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
 #
@@ -39,7 +39,7 @@ libc-nomulti-$(UCLIBC_HAS_RPC) += $(INET_RPC_OUT)/rpc_thread.o
 
 libc-$(UCLIBC_HAS_RPC)+=$(INET_RPC_OBJ)
 
-objclean-y+=inet_rpc_objclean
+objclean-y+=inet_rpc_clean
 
-inet_rpc_objclean:
-	$(RM) $(INET_RPC_OUT)/*.{o,os,oS}
+inet_rpc_clean:
+	$(do_rm) $(addprefix $(INET_RPC_OUT)/*., o os oS)

+ 4 - 4
libc/misc/assert/Makefile.in

@@ -1,6 +1,6 @@
 # Makefile for uClibc
 #
-# Copyright (C) 2000-2006 Erik Andersen <andersen@uclibc.org>
+# Copyright (C) 2000-2008 Erik Andersen <andersen@uclibc.org>
 #
 # Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
 #
@@ -15,7 +15,7 @@ MISC_ASSERT_OBJ := $(MISC_ASSERT_OUT)/__assert.o
 
 libc-y += $(MISC_ASSERT_OBJ)
 
-objclean-y += misc_assert_objclean
+objclean-y += misc_assert_clean
 
-misc_assert_objclean:
-	$(RM) $(MISC_ASSERT_OUT)/*.{o,os}
+misc_assert_clean:
+	$(do_rm) $(addprefix $(MISC_ASSERT_OUT)/*., o os)

+ 4 - 4
libc/misc/ctype/Makefile.in

@@ -1,6 +1,6 @@
 # Makefile for uClibc
 #
-# Copyright (C) 2000-2006 Erik Andersen <andersen@uclibc.org>
+# Copyright (C) 2000-2008 Erik Andersen <andersen@uclibc.org>
 #
 # Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
 #
@@ -32,7 +32,7 @@ MISC_CTYPE_OBJ := $(patsubst %.c,$(MISC_CTYPE_OUT)/%.o,$(CSRC))
 
 libc-y += $(MISC_CTYPE_OBJ)
 
-objclean-y += misc_ctype_objclean
+objclean-y += misc_ctype_clean
 
-misc_ctype_objclean:
-	$(RM) $(MISC_CTYPE_OUT)/*.{o,os}
+misc_ctype_clean:
+	$(do_rm) $(addprefix $(MISC_CTYPE_OUT)/*., o os)

+ 4 - 4
libc/misc/dirent/Makefile.in

@@ -1,6 +1,6 @@
 # Makefile for uClibc
 #
-# Copyright (C) 2000-2006 Erik Andersen <andersen@uclibc.org>
+# Copyright (C) 2000-2008 Erik Andersen <andersen@uclibc.org>
 #
 # Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
 #
@@ -20,7 +20,7 @@ MISC_DIRENT_OBJ := $(patsubst %.c,$(MISC_DIRENT_OUT)/%.o,$(CSRC))
 
 libc-y += $(MISC_DIRENT_OBJ)
 
-objclean-y += misc_dirent_objclean
+objclean-y += misc_dirent_clean
 
-misc_dirent_objclean:
-	$(RM) $(MISC_DIRENT_OUT)/*.{o,os}
+misc_dirent_clean:
+	$(do_rm) $(addprefix $(MISC_DIRENT_OUT)/*., o os)

+ 4 - 4
libc/misc/error/Makefile.in

@@ -1,6 +1,6 @@
 # Makefile for uClibc
 #
-# Copyright (C) 2000-2006 Erik Andersen <andersen@uclibc.org>
+# Copyright (C) 2000-2008 Erik Andersen <andersen@uclibc.org>
 #
 # Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
 #
@@ -21,7 +21,7 @@ MISC_ERROR_OBJ := $(patsubst %.c,$(MISC_ERROR_OUT)/%.o,$(CSRC))
 
 libc-y += $(MISC_ERROR_OBJ)
 
-objclean-y += misc_error_objclean
+objclean-y += misc_error_clean
 
-misc_error_objclean:
-	$(RM) $(MISC_ERROR_OUT)/*.{o,os}
+misc_error_clean:
+	$(do_rm) $(addprefix $(MISC_ERROR_OUT)/*., o os)

+ 4 - 4
libc/misc/file/Makefile.in

@@ -1,6 +1,6 @@
 # Makefile for uClibc
 #
-# Copyright (C) 2000-2006 Erik Andersen <andersen@uclibc.org>
+# Copyright (C) 2000-2008 Erik Andersen <andersen@uclibc.org>
 #
 # Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
 #
@@ -18,7 +18,7 @@ libc-y += $(MISC_FILE_OBJ)
 
 libc-nomulti-$(UCLIBC_HAS_LFS) += $(MISC_FILE_OUT)/lockf64.o
 
-objclean-y += misc_file_objclean
+objclean-y += misc_file_clean
 
-misc_file_objclean:
-	$(RM) $(MISC_FILE_OUT)/*.{o,os,oS}
+misc_file_clean:
+	$(do_rm) $(addprefix $(MISC_FILE_OUT)/*., o os oS)

+ 4 - 4
libc/misc/fnmatch/Makefile.in

@@ -1,6 +1,6 @@
 # Makefile for uClibc
 #
-# Copyright (C) 2000-2006 Erik Andersen <andersen@uclibc.org>
+# Copyright (C) 2000-2008 Erik Andersen <andersen@uclibc.org>
 #
 # Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
 #
@@ -19,7 +19,7 @@ MISC_FNMATCH_OBJ := $(patsubst %.c,$(MISC_FNMATCH_OUT)/%.o,$(CSRC))
 
 libc-$(UCLIBC_HAS_FNMATCH) += $(MISC_FNMATCH_OBJ)
 
-objclean-y += misc_fnmatch_objclean
+objclean-y += misc_fnmatch_clean
 
-misc_fnmatch_objclean:
-	$(RM) $(MISC_FNMATCH_OUT)/*.{o,os}
+misc_fnmatch_clean:
+	$(do_rm) $(addprefix $(MISC_FNMATCH_OUT)/*., o os)

+ 4 - 4
libc/misc/ftw/Makefile.in

@@ -1,6 +1,6 @@
 # Makefile for uClibc
 #
-# Copyright (C) 2000-2006 Erik Andersen <andersen@uclibc.org>
+# Copyright (C) 2000-2008 Erik Andersen <andersen@uclibc.org>
 #
 # Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
 #
@@ -18,7 +18,7 @@ MISC_FTW_OBJ := $(patsubst %.c,$(MISC_FTW_OUT)/%.o,$(CSRC))
 
 libc-$(UCLIBC_HAS_FTW) += $(MISC_FTW_OBJ)
 
-objclean-y += misc_ftw_objclean
+objclean-y += misc_ftw_clean
 
-misc_ftw_objclean:
-	$(RM) $(MISC_FTW_OUT)/*.{o,os}
+misc_ftw_clean:
+	$(do_rm) $(addprefix $(MISC_FTW_OUT)/*., o os)

+ 4 - 4
libc/misc/glob/Makefile.in

@@ -1,6 +1,6 @@
 # Makefile for uClibc
 #
-# Copyright (C) 2000-2006 Erik Andersen <andersen@uclibc.org>
+# Copyright (C) 2000-2008 Erik Andersen <andersen@uclibc.org>
 #
 # Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
 #
@@ -25,7 +25,7 @@ MISC_GLOB_OBJ := $(patsubst %.c,$(MISC_GLOB_OUT)/%.o,$(CSRC))
 
 libc-$(UCLIBC_HAS_GLOB) += $(MISC_GLOB_OBJ)
 
-objclean-y += misc_glob_objclean
+objclean-y += misc_glob_clean
 
-misc_glob_objclean:
-	$(RM) $(MISC_GLOB_OUT)/*.{o,os}
+misc_glob_clean:
+	$(do_rm) $(addprefix $(MISC_GLOB_OUT)/*., o os)

+ 4 - 4
libc/misc/gnu/Makefile.in

@@ -1,6 +1,6 @@
 # Makefile for uClibc
 #
-# Copyright (C) 2000-2006 Erik Andersen <andersen@uclibc.org>
+# Copyright (C) 2000-2008 Erik Andersen <andersen@uclibc.org>
 #
 # Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
 #
@@ -15,7 +15,7 @@ MISC_GNU_OBJ := $(MISC_GNU_OUT)/obstack.o
 
 libc-y += $(MISC_GNU_OBJ)
 
-objclean-y += misc_gnu_objclean
+objclean-y += misc_gnu_clean
 
-misc_gnu_objclean:
-	$(RM) $(MISC_GNU_OUT)/*.{o,os}
+misc_gnu_clean:
+	$(do_rm) $(addprefix $(MISC_GNU_OUT)/*., o os)

+ 4 - 4
libc/misc/internals/Makefile.in

@@ -1,6 +1,6 @@
 # Makefile for uClibc
 #
-# Copyright (C) 2000-2006 Erik Andersen <andersen@uclibc.org>
+# Copyright (C) 2000-2008 Erik Andersen <andersen@uclibc.org>
 #
 # Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
 #
@@ -33,7 +33,7 @@ libc-shared-$(UCLIBC_FORMAT_SHARED_FLAT) += \
   $(MISC_INTERNALS_OUT)/shared_flat_add_library.os
 libc-nomulti-y += $(MISC_INTERNALS_OUT)/__uClibc_main.o
 
-objclean-y += misc_internals_objclean
+objclean-y += misc_internals_clean
 
-misc_internals_objclean:
-	$(RM) $(MISC_INTERNALS_OUT)/*.{o,os,oS}
+misc_internals_clean:
+	$(do_rm) $(addprefix $(MISC_INTERNALS_OUT)/*., o os oS)

+ 4 - 4
libc/misc/locale/Makefile.in

@@ -1,6 +1,6 @@
 # Makefile for uClibc
 #
-# Copyright (C) 2000-2006 Erik Andersen <andersen@uclibc.org>
+# Copyright (C) 2000-2008 Erik Andersen <andersen@uclibc.org>
 #
 # Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
 #
@@ -22,7 +22,7 @@ MISC_LOCALE_OBJ := $(patsubst %.c,$(MISC_LOCALE_OUT)/%.o,$(CSRC))
 
 libc-y += $(MISC_LOCALE_OBJ)
 
-objclean-y += misc_locale_objclean
+objclean-y += misc_locale_clean
 
-misc_locale_objclean:
-	$(RM) $(MISC_LOCALE_OUT)/*.{o,os}
+misc_locale_clean:
+	$(do_rm) $(addprefix $(MISC_LOCALE_OUT)/*., o os)

+ 4 - 4
libc/misc/mntent/Makefile.in

@@ -1,6 +1,6 @@
 # Makefile for uClibc
 #
-# Copyright (C) 2000-2006 Erik Andersen <andersen@uclibc.org>
+# Copyright (C) 2000-2008 Erik Andersen <andersen@uclibc.org>
 #
 # Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
 #
@@ -15,7 +15,7 @@ MISC_MNTENT_OBJ := $(MISC_MNTENT_OUT)/mntent.o
 
 libc-y += $(MISC_MNTENT_OBJ)
 
-objclean-y += misc_mntent_objclean
+objclean-y += misc_mntent_clean
 
-misc_mntent_objclean:
-	$(RM) $(MISC_MNTENT_OUT)/*.{o,os}
+misc_mntent_clean:
+	$(do_rm) $(addprefix $(MISC_MNTENT_OUT)/*., o os)

+ 4 - 4
libc/misc/pthread/Makefile.in

@@ -1,6 +1,6 @@
 # Makefile for uClibc
 #
-# Copyright (C) 2000-2006 Erik Andersen <andersen@uclibc.org>
+# Copyright (C) 2000-2008 Erik Andersen <andersen@uclibc.org>
 #
 # Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
 #
@@ -11,7 +11,7 @@ MISC_PTHREAD_OUT := $(top_builddir)libc/misc/pthread
 libc-$(UCLIBC_HAS_THREADS) += $(MISC_PTHREAD_OUT)/unlock.o
 libc-$(UCLIBC_HAS_THREADS) += $(MISC_PTHREAD_OUT)/weaks.o
 
-objclean-y += misc_pthread_objclean
+objclean-y += misc_pthread_clean
 
-misc_pthread_objclean:
-	$(RM) $(MISC_PTHREAD_OUT)/*.{o,os,oS}
+misc_pthread_clean:
+	$(do_rm) $(addprefix $(MISC_PTHREAD_OUT)/*., o os oS)

+ 4 - 4
libc/misc/regex/Makefile.in

@@ -1,6 +1,6 @@
 # Makefile for uClibc
 #
-# Copyright (C) 2000-2006 Erik Andersen <andersen@uclibc.org>
+# Copyright (C) 2000-2008 Erik Andersen <andersen@uclibc.org>
 #
 # Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
 #
@@ -19,7 +19,7 @@ MISC_REGEX_OBJ := $(patsubst %.c,$(MISC_REGEX_OUT)/%.o,$(CSRC))
 
 libc-$(UCLIBC_HAS_REGEX) += $(MISC_REGEX_OBJ)
 
-objclean-y += misc_regex_objclean
+objclean-y += misc_regex_clean
 
-misc_regex_objclean:
-	$(RM) $(MISC_REGEX_OUT)/*.{o,os}
+misc_regex_clean:
+	$(do_rm) $(addprefix $(MISC_REGEX_OUT)/*., o os)

+ 4 - 4
libc/misc/search/Makefile.in

@@ -1,6 +1,6 @@
 # Makefile for uClibc
 #
-# Copyright (C) 2000-2006 Erik Andersen <andersen@uclibc.org>
+# Copyright (C) 2000-2008 Erik Andersen <andersen@uclibc.org>
 #
 # Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
 #
@@ -27,7 +27,7 @@ MISC_SEARCH_OBJ := $(patsubst %.c,$(MISC_SEARCH_OUT)/%.o,$(CSRC))
 
 libc-y += $(MISC_SEARCH_OBJ)
 
-objclean-y += misc_search_objclean
+objclean-y += misc_search_clean
 
-misc_search_objclean:
-	$(RM) $(MISC_SEARCH_OUT)/*.{o,os}
+misc_search_clean:
+	$(do_rm) $(addprefix $(MISC_SEARCH_OUT)/*., o os)

+ 4 - 4
libc/misc/statfs/Makefile.in

@@ -1,6 +1,6 @@
 # Makefile for uClibc
 #
-# Copyright (C) 2000-2006 Erik Andersen <andersen@uclibc.org>
+# Copyright (C) 2000-2008 Erik Andersen <andersen@uclibc.org>
 #
 # Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
 #
@@ -23,7 +23,7 @@ libc-y += $(MISC_STATFS_OBJ)
 
 libc-nomulti-$(UCLIBC_HAS_LFS) += $(MISC_STATFS_OUT)/statvfs64.o $(MISC_STATFS_OUT)/fstatvfs64.o
 
-objclean-y += misc_statfs_objclean
+objclean-y += misc_statfs_clean
 
-misc_statfs_objclean:
-	$(RM) $(MISC_STATFS_OUT)/*.{o,os,oS}
+misc_statfs_clean:
+	$(do_rm) $(addprefix $(MISC_STATFS_OUT)/*., o os oS)

+ 4 - 4
libc/misc/syslog/Makefile.in

@@ -1,6 +1,6 @@
 # Makefile for uClibc
 #
-# Copyright (C) 2000-2006 Erik Andersen <andersen@uclibc.org>
+# Copyright (C) 2000-2008 Erik Andersen <andersen@uclibc.org>
 #
 # Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
 #
@@ -17,7 +17,7 @@ ifeq ($(UCLIBC_HAS_SYSLOG),y)
 libc-y += $(MISC_SYSLOG_OBJ)
 endif
 
-objclean-y += misc_syslog_objclean
+objclean-y += misc_syslog_clean
 
-misc_syslog_objclean:
-	$(RM) $(MISC_SYSLOG_OUT)/*.{o,os}
+misc_syslog_clean:
+	$(do_rm) $(addprefix $(MISC_SYSLOG_OUT)/*., o os)

+ 4 - 4
libc/misc/sysvipc/Makefile.in

@@ -1,6 +1,6 @@
 # Makefile for uClibc
 #
-# Copyright (C) 2000-2006 Erik Andersen <andersen@uclibc.org>
+# Copyright (C) 2000-2008 Erik Andersen <andersen@uclibc.org>
 #
 # Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
 #
@@ -24,7 +24,7 @@ MISC_SYSVIPC_OBJ := $(patsubst %.c,$(MISC_SYSVIPC_OUT)/%.o,$(CSRC))
 
 libc-y += $(MISC_SYSVIPC_OBJ)
 
-objclean-y += misc_sysvipc_objclean
+objclean-y += misc_sysvipc_clean
 
-misc_sysvipc_objclean:
-	$(RM) $(MISC_SYSVIPC_OUT)/*.{o,os}
+misc_sysvipc_clean:
+	$(do_rm) $(addprefix $(MISC_SYSVIPC_OUT)/*., o os)

+ 4 - 4
libc/misc/time/Makefile.in

@@ -1,6 +1,6 @@
 # Makefile for uClibc
 #
-# Copyright (C) 2000-2006 Erik Andersen <andersen@uclibc.org>
+# Copyright (C) 2000-2008 Erik Andersen <andersen@uclibc.org>
 #
 # Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
 #
@@ -35,7 +35,7 @@ MISC_TIME_OBJ := $(patsubst %.c,$(MISC_TIME_OUT)/%.o,$(CSRC))
 
 libc-y += $(MISC_TIME_OBJ)
 
-objclean-y += misc_time_objclean
+objclean-y += misc_time_clean
 
-misc_time_objclean:
-	$(RM) $(MISC_TIME_OUT)/*.{o,os}
+misc_time_clean:
+	$(do_rm) $(addprefix $(MISC_TIME_OUT)/*., o os)

+ 4 - 4
libc/misc/ttyent/Makefile.in

@@ -1,6 +1,6 @@
 # Makefile for uClibc
 #
-# Copyright (C) 2000-2006 Erik Andersen <andersen@uclibc.org>
+# Copyright (C) 2000-2008 Erik Andersen <andersen@uclibc.org>
 #
 # Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
 #
@@ -15,7 +15,7 @@ MISC_TTYENT_OBJ := $(patsubst %.c,$(MISC_TTYENT_OUT)/%.o,$(CSRC))
 
 libc-y += $(MISC_TTYENT_OBJ)
 
-objclean-y += misc_ttyent_objclean
+objclean-y += misc_ttyent_clean
 
-misc_ttyent_objclean:
-	$(RM) $(MISC_TTYENT_OUT)/*.{o,os}
+misc_ttyent_clean:
+	$(do_rm) $(addprefix $(MISC_TTYENT_OUT)/*., o os)

+ 4 - 4
libc/misc/utmp/Makefile.in

@@ -1,6 +1,6 @@
 # Makefile for uClibc
 #
-# Copyright (C) 2000-2006 Erik Andersen <andersen@uclibc.org>
+# Copyright (C) 2000-2008 Erik Andersen <andersen@uclibc.org>
 #
 # Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
 #
@@ -15,7 +15,7 @@ MISC_UTMP_OBJ := $(patsubst %.c,$(MISC_UTMP_OUT)/%.o,$(CSRC))
 
 libc-y += $(MISC_UTMP_OBJ)
 
-objclean-y += misc_utmp_objclean
+objclean-y += misc_utmp_clean
 
-misc_utmp_objclean:
-	$(RM) $(MISC_UTMP_OUT)/*.{o,os}
+misc_utmp_clean:
+	$(do_rm) $(addprefix $(MISC_UTMP_OUT)/*., o os)

+ 4 - 4
libc/misc/wchar/Makefile.in

@@ -1,6 +1,6 @@
 # Makefile for uClibc
 #
-# Copyright (C) 2000-2006 Erik Andersen <andersen@uclibc.org>
+# Copyright (C) 2000-2008 Erik Andersen <andersen@uclibc.org>
 #
 # Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
 #
@@ -33,7 +33,7 @@ MISC_WCHAR_OBJ := $(patsubst %.c,$(MISC_WCHAR_OUT)/%.o,$(CSRC))
 
 libc-$(UCLIBC_HAS_WCHAR) += $(MISC_WCHAR_OBJ)
 
-objclean-y += misc_wchar_objclean
+objclean-y += misc_wchar_clean
 
-misc_wchar_objclean:
-	$(RM) $(MISC_WCHAR_OUT)/*.{o,os}
+misc_wchar_clean:
+	$(do_rm) $(addprefix $(MISC_WCHAR_OUT)/*., o os)

+ 4 - 4
libc/misc/wctype/Makefile.in

@@ -1,6 +1,6 @@
 # Makefile for uClibc
 #
-# Copyright (C) 2000-2006 Erik Andersen <andersen@uclibc.org>
+# Copyright (C) 2000-2008 Erik Andersen <andersen@uclibc.org>
 #
 # Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
 #
@@ -28,7 +28,7 @@ MISC_WCTYPE_OBJ := $(patsubst %.c,$(MISC_WCTYPE_OUT)/%.o,$(CSRC))
 
 libc-y += $(MISC_WCTYPE_OBJ)
 
-objclean-y += misc_wctype_objclean
+objclean-y += misc_wctype_clean
 
-misc_wctype_objclean:
-	$(RM) $(MISC_WCTYPE_OUT)/*.{o,os}
+misc_wctype_clean:
+	$(do_rm) $(addprefix $(MISC_WCTYPE_OUT)/*., o os)

+ 4 - 4
libc/misc/wordexp/Makefile.in

@@ -1,6 +1,6 @@
 # Makefile for uClibc
 #
-# Copyright (C) 2000-2006 Erik Andersen <andersen@uclibc.org>
+# Copyright (C) 2000-2008 Erik Andersen <andersen@uclibc.org>
 #
 # Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
 #
@@ -15,7 +15,7 @@ MISC_WORDEXP_OBJ := $(patsubst %.c,$(MISC_WORDEXP_OUT)/%.o,$(CSRC))
 
 libc-$(UCLIBC_HAS_WORDEXP) += $(MISC_WORDEXP_OBJ)
 
-objclean-y += misc_wordexp_objclean
+objclean-y += misc_wordexp_clean
 
-misc_wordexp_objclean:
-	$(RM) $(MISC_WORDEXP_OUT)/*.{o,os}
+misc_wordexp_clean:
+	$(do_rm) $(addprefix $(MISC_WORDEXP_OUT)/*., o os)

+ 4 - 4
libc/pwd_grp/Makefile.in

@@ -1,6 +1,6 @@
 # Makefile for uClibc
 #
-# Copyright (C) 2000-2006 Erik Andersen <andersen@uclibc.org>
+# Copyright (C) 2000-2008 Erik Andersen <andersen@uclibc.org>
 #
 # Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
 #
@@ -25,7 +25,7 @@ PWDGRP_OBJ := $(patsubst %.c,$(PWDGRP_OUT)/%.o,$(CSRC))
 
 libc-y += $(PWDGRP_OBJ)
 
-objclean-y += pwdgrp_objclean
+objclean-y += pwdgrp_clean
 
-pwdgrp_objclean:
-	$(RM) $(PWDGRP_OUT)/*.{o,os}
+pwdgrp_clean:
+	$(do_rm) $(addprefix $(PWDGRP_OUT)/*., o os)

+ 4 - 4
libc/signal/Makefile.in

@@ -1,6 +1,6 @@
 # Makefile for uClibc
 #
-# Copyright (C) 2000-2006 Erik Andersen <andersen@uclibc.org>
+# Copyright (C) 2000-2008 Erik Andersen <andersen@uclibc.org>
 #
 # Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
 #
@@ -28,7 +28,7 @@ SIGNAL_OBJ := $(patsubst %.c,$(SIGNAL_OUT)/%.o,$(CSRC))
 
 libc-y += $(SIGNAL_OBJ)
 
-objclean-y += signal_objclean
+objclean-y += signal_clean
 
-signal_objclean:
-	$(RM) $(SIGNAL_OUT)/*.{o,os}
+signal_clean:
+	$(do_rm) $(addprefix $(SIGNAL_OUT)/*., o os)

+ 4 - 4
libc/stdio/Makefile.in

@@ -1,7 +1,7 @@
 # Makefile for uClibc
 #
 # Copyright (C) 2004 Manuel Novoa III <mjn3@uclibc.org>
-# Copyright (C) 2000-2006 Erik Andersen <andersen@uclibc.org>
+# Copyright (C) 2000-2008 Erik Andersen <andersen@uclibc.org>
 #
 # Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
 #
@@ -101,7 +101,7 @@ ifeq ($(UCLIBC_HAS_WCHAR),y)
 libc-nomulti-y += $(STDIO_OUT)/vfwprintf.o $(STDIO_OUT)/vfwscanf.o
 endif
 
-objclean-y += stdio_objclean
+objclean-y += stdio_clean
 
-stdio_objclean:
-	$(RM) $(STDIO_OUT)/*.{o,os,oS}
+stdio_clean:
+	$(do_rm) $(addprefix $(STDIO_OUT)/*., o os oS)

+ 4 - 4
libc/stdlib/Makefile.in

@@ -1,6 +1,6 @@
 # Makefile for uClibc
 #
-# Copyright (C) 2000-2006 Erik Andersen <andersen@uclibc.org>
+# Copyright (C) 2000-2008 Erik Andersen <andersen@uclibc.org>
 #
 # Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
 #
@@ -93,7 +93,7 @@ libc-nonshared-y += $(STDLIB_OUT)/atexit.os
 libc-nomulti-y += $(STDLIB_OUT)/labs.o $(STDLIB_OUT)/atol.o $(STDLIB_OUT)/_stdlib_strto_l.o $(STDLIB_OUT)/_stdlib_strto_ll.o
 libc-nomulti-$(UCLIBC_HAS_XLOCALE) += $(STDLIB_OUT)/_stdlib_strto_l_l.o $(STDLIB_OUT)/_stdlib_strto_ll_l.o
 
-objclean-y += stdlib_objclean
+objclean-y += stdlib_clean
 
-stdlib_objclean:
-	$(RM) $(STDLIB_OUT)/*.{o,os,oS}
+stdlib_clean:
+	$(do_rm) $(addprefix $(STDLIB_OUT)/*., o os oS)

+ 4 - 4
libc/stdlib/malloc-simple/Makefile.in

@@ -1,6 +1,6 @@
 # Makefile for uClibc
 #
-# Copyright (C) 2000-2006 Erik Andersen <andersen@uclibc.org>
+# Copyright (C) 2000-2008 Erik Andersen <andersen@uclibc.org>
 #
 # Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
 #
@@ -16,7 +16,7 @@ STDLIB_MALLOC_SIMPLE_OBJ := $(patsubst %.c,$(STDLIB_MALLOC_SIMPLE_OUT)/%.o,$(CSR
 
 libc-$(MALLOC_SIMPLE) += $(STDLIB_MALLOC_SIMPLE_OBJ)
 
-objclean-y += stdlib_malloc_simple_objclean
+objclean-y += stdlib_malloc_simple_clean
 
-stdlib_malloc_simple_objclean:
-	$(RM) $(STDLIB_MALLOC_SIMPLE_OUT)/*.{o,os}
+stdlib_malloc_simple_clean:
+	$(do_rm) $(addprefix $(STDLIB_MALLOC_SIMPLE_OUT)/*., o os)

+ 4 - 4
libc/stdlib/malloc-standard/Makefile.in

@@ -1,6 +1,6 @@
 # Makefile for uClibc
 #
-# Copyright (C) 2000-2006 Erik Andersen <andersen@uclibc.org>
+# Copyright (C) 2000-2008 Erik Andersen <andersen@uclibc.org>
 #
 # Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
 #
@@ -17,7 +17,7 @@ STDLIB_MALLOC_STANDARD_OBJ := $(patsubst %.c,$(STDLIB_MALLOC_STANDARD_OUT)/%.o,$
 
 libc-$(MALLOC_STANDARD) += $(STDLIB_MALLOC_STANDARD_OBJ)
 
-objclean-y += stdlib_malloc_standard_objclean
+objclean-y += stdlib_malloc_standard_clean
 
-stdlib_malloc_standard_objclean:
-	$(RM) $(STDLIB_MALLOC_STANDARD_OUT)/*.{o,os}
+stdlib_malloc_standard_clean:
+	$(do_rm) $(addprefix $(STDLIB_MALLOC_STANDARD_OUT)/*., o os)

+ 4 - 4
libc/stdlib/malloc/Makefile.in

@@ -2,7 +2,7 @@
 #
 # Copyright (C) 2002-2003  NEC Electronics Corporation
 # Copyright (C) 2002-2003  Miles Bader <miles@gnu.org>
-# Copyright (C) 2000-2006 Erik Andersen <andersen@uclibc.org>
+# Copyright (C) 2000-2008 Erik Andersen <andersen@uclibc.org>
 #
 # Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
 #
@@ -27,10 +27,10 @@ STDLIB_MALLOC_OBJ := $(patsubst %.c,$(STDLIB_MALLOC_OUT)/%.o,$(CSRC))
 
 libc-$(MALLOC) += $(STDLIB_MALLOC_OBJ)
 
-objclean-y += stdlib_malloc_objclean
+objclean-y += stdlib_malloc_clean
 
-stdlib_malloc_objclean:
-	$(RM) $(STDLIB_MALLOC_OUT)/*.{o,os}
+stdlib_malloc_clean:
+	$(do_rm) $(addprefix $(STDLIB_MALLOC_OUT)/*., o os)
 
 malloc.o free.o realloc.o memalign.o: malloc.h
 # Depend on uClinux_config.h to cache changes in __UCLIBC_MALLOC_DEBUGGING__

+ 4 - 4
libc/string/Makefile.in

@@ -1,6 +1,6 @@
 # Makefile for uClibc
 #
-# Copyright (C) 2000-2006 Erik Andersen <andersen@uclibc.org>
+# Copyright (C) 2000-2008 Erik Andersen <andersen@uclibc.org>
 #
 # Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
 #
@@ -133,7 +133,7 @@ libc-y += $(STRING_COBJ)
 libc-nomulti-$(UCLIBC_HAS_XLOCALE) += $(STRING_OUT)/wcsxfrm_l.o
 libc-nomulti-y += $(STRING_OUT)/__xpg_strerror_r.o
 
-objclean-y += string_objclean
+objclean-y += string_clean
 
-string_objclean:
-	$(RM) $(STRING_OUT)/{,*/}{,*/}*.{o,os,oS}
+string_clean:
+	$(do_rm) $(addprefix $(STRING_OUT)/,$(addprefix *., o os oS) $(addprefix */*., o os oS))

+ 2 - 2
libc/sysdeps/linux/Makefile.commonarch

@@ -1,6 +1,6 @@
 # Makefile template to be included by sysdeps/linux/<ARCH>/Makefile.arch
 #
-# Copyright (C) 2000-2006 Erik Andersen <andersen@uclibc.org>
+# Copyright (C) 2000-2008 Erik Andersen <andersen@uclibc.org>
 #
 # Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
 #
@@ -24,7 +24,7 @@ CFLAGS-crti.S+=$(PICFLAG)
 CFLAGS-crtn.S+=$(PICFLAG)
 
 arch_objclean:
-	$(RM) $(ARCH_OUT)/*.{o,os,oS} $(CTOR_TARGETS) $(CRTS)
+	$(do_rm) $(addprefix $(ARCH_OUT)/*., o os oS) $(CTOR_TARGETS) $(CRTS)
 
 ifneq ($(ARCH_HEADERS),)
 

+ 4 - 4
libc/sysdeps/linux/common/Makefile.in

@@ -1,6 +1,6 @@
 # Makefile for uClibc
 #
-# Copyright (C) 2000-2006 Erik Andersen <andersen@uclibc.org>
+# Copyright (C) 2000-2008 Erik Andersen <andersen@uclibc.org>
 #
 # Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
 #
@@ -96,7 +96,7 @@ libc-nomulti-y += $(COMMON_OUT)/__syscall_rt_sigaction.o \
 	$(COMMON_OUT)/stat.o
 libc-nomulti-$(UCLIBC_HAS_SSP) += $(COMMON_OUT)/ssp.o
 
-objclean-y += common_objclean
+objclean-y += common_clean
 
-common_objclean:
-	$(RM) $(COMMON_OUT)/*.{o,os,oS}
+common_clean:
+	$(do_rm) $(addprefix $(COMMON_OUT)/*., o os oS)

+ 4 - 4
libc/termios/Makefile.in

@@ -1,6 +1,6 @@
 # Makefile for uClibc
 #
-# Copyright (C) 2000-2006 Erik Andersen <andersen@uclibc.org>
+# Copyright (C) 2000-2008 Erik Andersen <andersen@uclibc.org>
 #
 # Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
 #
@@ -13,7 +13,7 @@ TERMIOS_OBJ := $(patsubst $(TERMIOS_DIR)/%.c,$(TERMIOS_OUT)/%.o,$(TERMIOS_SRC))
 
 libc-y += $(TERMIOS_OBJ)
 
-objclean-y += termios_objclean
+objclean-y += termios_clean
 
-termios_objclean:
-	$(RM) $(TERMIOS_OUT)/*.{o,os}
+termios_clean:
+	$(do_rm) $(addprefix $(TERMIOS_OUT)/*., o os)

+ 4 - 4
libc/unistd/Makefile.in

@@ -1,6 +1,6 @@
 # Makefile for uClibc
 #
-# Copyright (C) 2000-2006 Erik Andersen <andersen@uclibc.org>
+# Copyright (C) 2000-2008 Erik Andersen <andersen@uclibc.org>
 #
 # Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
 #
@@ -42,7 +42,7 @@ UNISTD_OBJ := $(patsubst %.c,$(UNISTD_OUT)/%.o,$(CSRC))
 
 libc-y += $(UNISTD_OBJ)
 
-objclean-y += unistd_objclean
+objclean-y += unistd_clean
 
-unistd_objclean:
-	$(RM) $(UNISTD_OUT)/*.{o,os}
+unistd_clean:
+	$(do_rm) $(addprefix $(UNISTD_OUT)/*., o os)

+ 2 - 2
libcrypt/Makefile.in

@@ -1,6 +1,6 @@
 # Makefile for uClibc
 #
-# Copyright (C) 2000-2006 Erik Andersen <andersen@uclibc.org>
+# Copyright (C) 2000-2008 Erik Andersen <andersen@uclibc.org>
 #
 # Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
 #
@@ -65,4 +65,4 @@ $(top_builddir)lib/libcrypt.a: $(libcrypt-a-y)
 	$(do_ar)
 
 libcrypt_clean:
-	$(RM) $(libcrypt_OUT)/*.{o,os,oS,a}
+	$(do_rm) $(addprefix $(libcrypt_OUT)/*., o os oS a)

+ 2 - 2
libintl/Makefile.in

@@ -1,6 +1,6 @@
 # Makefile for uClibc
 #
-# Copyright (C) 2000-2006 Erik Andersen <andersen@uclibc.org>
+# Copyright (C) 2000-2008 Erik Andersen <andersen@uclibc.org>
 #
 # Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
 #
@@ -71,4 +71,4 @@ $(libintl_MOBJ:.o=.os): $(libintl_MSRC)
 	$(compile.m)
 
 libintl_clean:
-	$(RM) $(libintl_OUT)/*.{o,os,a}
+	$(do_rm) $(addprefix $(libintl_OUT)/*., o os oS a)

+ 2 - 2
libm/Makefile.in

@@ -1,6 +1,6 @@
 # Makefile for uClibc
 #
-# Copyright (C) 2000-2006 Erik Andersen <andersen@uclibc.org>
+# Copyright (C) 2000-2008 Erik Andersen <andersen@uclibc.org>
 #
 # Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
 #
@@ -204,4 +204,4 @@ $(libm_MOBJ2:.o=.os): $(libm_MSRC2)
 	$(compile.m)
 
 libm_clean:
-	$(RM) $(libm_OUT)/{,*/,*/*/}*.{o,os,oS,a}
+	$(do_rm) $(addprefix $(libm_OUT)/,$(foreach e, o os oS a,$(foreach d, *. */*. */*/*.,$(d)$(e))))

+ 2 - 2
libnsl/Makefile.in

@@ -1,6 +1,6 @@
 # Makefile for uClibc
 #
-# Copyright (C) 2000-2005 Erik Andersen <andersen@uclibc.org>
+# Copyright (C) 2000-2008 Erik Andersen <andersen@uclibc.org>
 #
 # Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
 #
@@ -47,4 +47,4 @@ $(top_builddir)lib/libnsl.a: $(libnsl-a-y)
 	$(do_ar)
 
 libnsl_clean:
-	$(RM) $(libnsl_OUT)/*.{o,os,a}
+	$(do_rm) $(addprefix $(libnsl_OUT)/*., o os a)

+ 3 - 3
libpthread/linuxthreads.old/Makefile.in

@@ -1,7 +1,7 @@
 # Makefile for uClibc
 #
 # Copyright (C) 2003 Paul Mundt <lethal@linux-sh.org>
-# Copyright (C) 2000-2006 Erik Andersen <andersen@uclibc.org>
+# Copyright (C) 2000-2008 Erik Andersen <andersen@uclibc.org>
 #
 # Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
 #
@@ -117,7 +117,7 @@ headers-$(UCLIBC_HAS_THREADS) += $(linuxthreads_headers)
 objclean-y += libpthread_clean
 headers_clean-y += linuxthreads_headers_clean
 linuxthreads_headers_clean:
-	$(RM) $(addprefix $(top_builddir),$(linuxthreads_headers))
+	$(do_rm) $(addprefix $(top_builddir),$(linuxthreads_headers))
 
 libpthread_clean:
-	$(RM) $(libpthread_OUT)/*.{o,os,oS,a}
+	$(do_rm) $(addprefix $(libpthread_OUT)/*., o os oS a)

+ 2 - 2
libpthread/linuxthreads.old/sysdeps/sh64/Makefile.arch

@@ -1,7 +1,7 @@
 # Makefile for uClibc
 #
 # Copyright (C) 2003 Paul Mundt <lethal@linux-sh.org>
-# Copyright (C) 2000-2005 Erik Andersen <andersen@uclibc.org>
+# Copyright (C) 2000-2008 Erik Andersen <andersen@uclibc.org>
 #
 # Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
 #
@@ -27,4 +27,4 @@ $(libpthread_ARCH_OBJ:.o=.os): %.os : %.c
 	$(compile.c:32media=compact)
 
 libpthread_arch_objclean:
-	$(RM) $(libpthread_ARCH_OUT)/*.{o,os}
+	$(do_rm) $(addprefix $(libpthread_ARCH_OUT)/*., o os)

+ 3 - 3
libpthread/linuxthreads.old_db/Makefile.in

@@ -1,6 +1,6 @@
 # Makefile for uClibc
 #
-# Copyright (C) 2000-2006 Erik Andersen <andersen@uclibc.org>
+# Copyright (C) 2000-2008 Erik Andersen <andersen@uclibc.org>
 #
 # Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
 #
@@ -70,7 +70,7 @@ objclean-y += libthread_db_clean
 headers_clean-y += linuxthreads_db_headers_clean
 
 linuxthreads_db_headers_clean:
-	$(RM) $(top_builddir)include/thread_db.h
+	$(do_rm) $(top_builddir)include/thread_db.h
 
 libthread_db_clean:
-	$(RM) $(libthread_db_OUT)/*.{o,os,oS,a}
+	$(do_rm) $(addprefix $(libthread_db_OUT)/*., o os oS a)

+ 3 - 3
libpthread/linuxthreads/Makefile.in

@@ -1,7 +1,7 @@
 # Makefile for uClibc
 #
 # Copyright (C) 2003 Paul Mundt <lethal@linux-sh.org>
-# Copyright (C) 2000-2006 Erik Andersen <andersen@uclibc.org>
+# Copyright (C) 2000-2008 Erik Andersen <andersen@uclibc.org>
 #
 # Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
 #
@@ -130,7 +130,7 @@ headers-$(UCLIBC_HAS_THREADS) += $(linuxthreads_headers)
 objclean-y += libpthread_clean
 headers_clean-y += linuxthreads_headers_clean
 linuxthreads_headers_clean:
-	$(RM) $(addprefix $(top_builddir),$(linuxthreads_headers))
+	$(do_rm) $(addprefix $(top_builddir),$(linuxthreads_headers))
 
 libpthread_clean:
-	$(RM) $(libpthread_OUT)/{,*/,*/*/,*/*/*/,*/*/*/*/}*.{o,os,oS,a}
+	$(do_rm) $(addprefix $(libpthread_OUT)/,$(foreach e, o os oS a,$(foreach d, *. */*. */*/*. */*/*/*.,$(d)$(e))))

+ 3 - 3
libpthread/linuxthreads_db/Makefile.in

@@ -1,6 +1,6 @@
 # Makefile for uClibc
 #
-# Copyright (C) 2000-2006 Erik Andersen <andersen@uclibc.org>
+# Copyright (C) 2000-2008 Erik Andersen <andersen@uclibc.org>
 #
 # Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
 #
@@ -70,7 +70,7 @@ objclean-y += libthread_db_clean
 headers_clean-y += linuxthreads_db_headers_clean
 
 linuxthreads_db_headers_clean:
-	$(RM) $(top_builddir)include/thread_db.h
+	$(do_rm) $(top_builddir)include/thread_db.h
 
 libthread_db_clean:
-	$(RM) $(libthread_db_OUT)/*.{o,os,oS,a}
+	$(do_rm) $(addprefix $(libthread_db_OUT)/*., o os oS a)

+ 2 - 2
libresolv/Makefile.in

@@ -1,6 +1,6 @@
 # Makefile for uClibc
 #
-# Copyright (C) 2000-2005 Erik Andersen <andersen@uclibc.org>
+# Copyright (C) 2000-2008 Erik Andersen <andersen@uclibc.org>
 #
 # Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
 #
@@ -47,4 +47,4 @@ $(top_builddir)lib/libresolv.a: $(libresolv-a-y)
 	$(do_ar)
 
 libresolv_clean:
-	$(RM) $(libresolv_OUT)/*.{o,os,a}
+	$(do_rm) $(addprefix $(libresolv_OUT)/*., o os a)

+ 2 - 2
librt/Makefile.in

@@ -1,6 +1,6 @@
 # Makefile for uClibc
 #
-# Copyright (C) 2000-2005 Erik Andersen <andersen@uclibc.org>
+# Copyright (C) 2000-2008 Erik Andersen <andersen@uclibc.org>
 #
 # Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
 #
@@ -50,4 +50,4 @@ $(top_builddir)lib/librt.a: $(librt-a-y)
 objclean-y += librt_clean
 
 librt_clean:
-	$(RM) $(librt_OUT)/*.{o,os,a}
+	$(do_rm) $(addprefix $(librt_OUT)/*., o os a)

+ 2 - 2
libutil/Makefile.in

@@ -1,6 +1,6 @@
 # Makefile for uClibc
 #
-# Copyright (C) 2000-2006 Erik Andersen <andersen@uclibc.org>
+# Copyright (C) 2000-2008 Erik Andersen <andersen@uclibc.org>
 #
 # Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
 #
@@ -63,4 +63,4 @@ $(top_builddir)lib/libutil.a: $(libutil-a-y)
 	$(do_ar)
 
 libutil_clean:
-	$(RM) $(libutil_OUT)/*.{o,os,oS,a}
+	$(do_rm) $(addprefix $(libutil_OUT)/*., o os oS a)

+ 2 - 2
utils/Makefile.in

@@ -1,6 +1,6 @@
 # Makefile for uClibc
 #
-# Copyright (C) 2000-2005 Erik Andersen <andersen@uclibc.org>
+# Copyright (C) 2000-2008 Erik Andersen <andersen@uclibc.org>
 #
 # Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
 #
@@ -97,4 +97,4 @@ endif
 objclean-y += utils_clean
 
 utils_clean:
-	$(RM) $(utils_OUT)/{ldconfig,ldd,readelf,iconv,locale,*.host}
+	$(do_rm) $(addprefix $(utils_OUT)/, ldconfig ldd readelf iconv locale *.host)