OSDN Git Service

Peter Kjellerstedt writes:
authorEric Andersen <andersen@codepoet.org>
Sat, 18 Oct 2003 10:20:59 +0000 (10:20 -0000)
committerEric Andersen <andersen@codepoet.org>
Sat, 18 Oct 2003 10:20:59 +0000 (10:20 -0000)
rm.patch:
* Define $(RM) as rm -f in Rules.mak and test/Rules.mak
  (this is the same definition as gmake uses by default).
* Change all occurrences of rm and rm -f into $(RM).

96 files changed:
Makefile
Rules.mak
extra/Makefile
extra/config/Makefile
extra/gcc-uClibc/Makefile
extra/locale/Makefile
ldso/Makefile
ldso/ldso/Makefile
ldso/libdl/Makefile
ldso/man/Makefile
ldso/util/Makefile
libc/Makefile
libc/inet/Makefile
libc/inet/rpc/Makefile
libc/misc/Makefile
libc/misc/assert/Makefile
libc/misc/ctype/Makefile
libc/misc/dirent/Makefile
libc/misc/error/Makefile
libc/misc/file/Makefile
libc/misc/fnmatch/Makefile
libc/misc/ftw/Makefile
libc/misc/glob/Makefile
libc/misc/gnu/Makefile
libc/misc/internals/Makefile
libc/misc/intl/Makefile
libc/misc/locale/Makefile
libc/misc/mntent/Makefile
libc/misc/pthread/Makefile
libc/misc/regex/Makefile
libc/misc/search/Makefile
libc/misc/statfs/Makefile
libc/misc/syslog/Makefile
libc/misc/sysvipc/Makefile
libc/misc/time/Makefile
libc/misc/ttyent/Makefile
libc/misc/utmp/Makefile
libc/misc/wchar/Makefile
libc/misc/wctype/Makefile
libc/misc/wordexp/Makefile
libc/pwd_grp/Makefile
libc/signal/Makefile
libc/stdio/Makefile
libc/stdlib/Makefile
libc/stdlib/malloc-930716/Makefile
libc/stdlib/malloc/Makefile
libc/string/Makefile
libc/sysdeps/linux/alpha/Makefile
libc/sysdeps/linux/arm/Makefile
libc/sysdeps/linux/common/Makefile
libc/sysdeps/linux/cris/Makefile
libc/sysdeps/linux/e1/Makefile
libc/sysdeps/linux/h8300/Makefile
libc/sysdeps/linux/i386/Makefile
libc/sysdeps/linux/i960/Makefile
libc/sysdeps/linux/m68k/Makefile
libc/sysdeps/linux/microblaze/Makefile
libc/sysdeps/linux/mips/Makefile
libc/sysdeps/linux/powerpc/Makefile
libc/sysdeps/linux/sh/Makefile
libc/sysdeps/linux/sh64/Makefile
libc/sysdeps/linux/sparc/Makefile
libc/sysdeps/linux/v850/Makefile
libc/termios/Makefile
libc/unistd/Makefile
libcrypt/Makefile
libintl/Makefile
libm/Makefile
libm/powerpc/Makefile
libnsl/Makefile
libpthread/Makefile
libpthread/linuxthreads/Makefile
libpthread/linuxthreads_db/Makefile
libresolv/Makefile
libutil/Makefile
test/Makefile
test/Rules.mak
test/args/Makefile
test/assert/Makefile
test/crypt/Makefile
test/ctype/Makefile
test/dlopen/Makefile
test/malloc/Makefile
test/math/Makefile
test/misc/Makefile
test/mmap/Makefile
test/pthread/Makefile
test/pwd_grp/Makefile
test/setjmp/Makefile
test/signal/Makefile
test/silly/Makefile
test/stat/Makefile
test/stdlib/Makefile
test/string/Makefile
test/termios/Makefile
test/unistd/Makefile

index f5e3450..d698dd7 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -116,7 +116,7 @@ include/bits/uClibc_config.h: .config
        @if [ ! -x ./extra/config/conf ] ; then \
            make -C extra/config conf; \
        fi;
-       rm -rf include/bits
+       $(RM) -r include/bits
        $(INSTALL) -d include/bits
        @./extra/config/conf -o extra/Configs/Config.$(TARGET_ARCH)
 
@@ -198,58 +198,58 @@ install_dev:
        tar -chf - include | tar -xf - -C $(PREFIX)$(DEVEL_PREFIX);
 ifneq ($(strip $(UCLIBC_HAS_FLOATS)),y)
        # Remove floating point related headers since float support is disabled.
-       rm $(PREFIX)$(DEVEL_PREFIX)/include/complex.h
-       rm $(PREFIX)$(DEVEL_PREFIX)/include/fpu_control.h
-       rm $(PREFIX)$(DEVEL_PREFIX)/include/ieee754.h
-       rm $(PREFIX)$(DEVEL_PREFIX)/include/math.h
-       rm $(PREFIX)$(DEVEL_PREFIX)/include/tgmath.h
+       $(RM) $(PREFIX)$(DEVEL_PREFIX)/include/complex.h
+       $(RM) $(PREFIX)$(DEVEL_PREFIX)/include/fpu_control.h
+       $(RM) $(PREFIX)$(DEVEL_PREFIX)/include/ieee754.h
+       $(RM) $(PREFIX)$(DEVEL_PREFIX)/include/math.h
+       $(RM) $(PREFIX)$(DEVEL_PREFIX)/include/tgmath.h
 endif
 ifneq ($(strip $(UCLIBC_HAS_WCHAR)),y)
        # Remove wide char headers since wide char support is disabled.
-       rm $(PREFIX)$(DEVEL_PREFIX)/include/wctype.h
-       rm $(PREFIX)$(DEVEL_PREFIX)/include/wchar.h
+       $(RM) $(PREFIX)$(DEVEL_PREFIX)/include/wctype.h
+       $(RM) $(PREFIX)$(DEVEL_PREFIX)/include/wchar.h
 endif
 ifneq ($(strip $(UCLIBC_HAS_LOCALE)),y)
        # Remove iconv header since locale support is disabled.
-       rm $(PREFIX)$(DEVEL_PREFIX)/include/iconv.h
+       $(RM) $(PREFIX)$(DEVEL_PREFIX)/include/iconv.h
 endif
 ifneq ($(strip $(UCLIBC_HAS_GLIBC_CUSTOM_PRINTF)),y)
        # Remove printf header since custom print specifier support is disabled.
-       rm $(PREFIX)$(DEVEL_PREFIX)/include/printf.h
+       $(RM) $(PREFIX)$(DEVEL_PREFIX)/include/printf.h
 endif
 ifneq ($(strip $(UCLIBC_HAS_XLOCALE)),y)
        # Remove xlocale header since extended locale support is disabled.
-       rm $(PREFIX)$(DEVEL_PREFIX)/include/xlocale.h
+       $(RM) $(PREFIX)$(DEVEL_PREFIX)/include/xlocale.h
 endif
 ifneq ($(strip $(UCLIBC_HAS_GETTEXT_AWARENESS)),y)
        # Remove libintl header since gettext support is disabled.
-       rm $(PREFIX)$(DEVEL_PREFIX)/include/libintl.h
+       $(RM) $(PREFIX)$(DEVEL_PREFIX)/include/libintl.h
 endif
 ifneq ($(strip $(UCLIBC_HAS_REGEX)),y)
        # Remove regex headers since regex support is disabled.
-       rm $(PREFIX)$(DEVEL_PREFIX)/include/regex.h
-       rm $(PREFIX)$(DEVEL_PREFIX)/include/regexp.h
+       $(RM) $(PREFIX)$(DEVEL_PREFIX)/include/regex.h
+       $(RM) $(PREFIX)$(DEVEL_PREFIX)/include/regexp.h
 endif
 ifneq ($(strip $(UCLIBC_HAS_WORDEXP)),y)
        # Remove wordexp header since wordexp support is disabled.
-       rm $(PREFIX)$(DEVEL_PREFIX)/include/wordexp.h
+       $(RM) $(PREFIX)$(DEVEL_PREFIX)/include/wordexp.h
 endif
 ifneq ($(strip $(UCLIBC_HAS_FTW)),y)
        # Remove ftw header since ftw support is disabled.
-       rm $(PREFIX)$(DEVEL_PREFIX)/include/ftw.h
+       $(RM) $(PREFIX)$(DEVEL_PREFIX)/include/ftw.h
 endif
 ifneq ($(strip $(UCLIBC_HAS_GLOB)),y)
        # Remove glob header since glob support is disabled.
-       rm $(PREFIX)$(DEVEL_PREFIX)/include/glob.h
+       $(RM) $(PREFIX)$(DEVEL_PREFIX)/include/glob.h
 endif
 ifneq ($(strip $(UCLIBC_HAS_GNU_GETOPT)),y)
        # Remove getopt header since gnu getopt support is disabled.
-       rm $(PREFIX)$(DEVEL_PREFIX)/include/getopt.h
+       $(RM) $(PREFIX)$(DEVEL_PREFIX)/include/getopt.h
 endif
        -@for i in `find  $(PREFIX)$(DEVEL_PREFIX) -type d` ; do \
            chmod -f 755 $$i; chmod -f 644 $$i/*.h; \
        done;
-       -find $(PREFIX)$(DEVEL_PREFIX) -name CVS | xargs rm -rf;
+       -find $(PREFIX)$(DEVEL_PREFIX) -name CVS | xargs $(RM) -r;
        -chown -R `id | sed 's/^uid=\([0-9]*\).*gid=\([0-9]*\).*$$/\1.\2/'` $(PREFIX)$(DEVEL_PREFIX)
 ifeq ($(strip $(HAVE_SHARED)),y)
        -$(INSTALL) -m 644 lib/*.so $(PREFIX)$(DEVEL_PREFIX)/lib/
@@ -388,44 +388,44 @@ buildmconf:
        make -C extra/config ncurses mconf
 
 menuconfig: extra/config/mconf
-       rm -rf include/bits
+       $(RM) -r include/bits
        $(INSTALL) -d include/bits
        @./extra/config/mconf extra/Configs/Config.$(TARGET_ARCH)
 
 config: extra/config/conf
-       rm -rf include/bits
+       $(RM) -r include/bits
        $(INSTALL) -d include/bits
        @./extra/config/conf extra/Configs/Config.$(TARGET_ARCH)
 
 oldconfig: extra/config/conf
-       rm -rf include/bits
+       $(RM) -r include/bits
        $(INSTALL) -d include/bits
        @./extra/config/conf -o extra/Configs/Config.$(TARGET_ARCH)
 
 randconfig: extra/config/conf
-       rm -rf include/bits
+       $(RM) -r include/bits
        $(INSTALL) -d include/bits
        @./extra/config/conf -r extra/Configs/Config.$(TARGET_ARCH)
 
 allyesconfig: extra/config/conf
-       rm -rf include/bits
+       $(RM) -r include/bits
        $(INSTALL) -d include/bits
        @./extra/config/conf -y extra/Configs/Config.$(TARGET_ARCH)
 
 allnoconfig: extra/config/conf
-       rm -rf include/bits
+       $(RM) -r include/bits
        $(INSTALL) -d include/bits
        @./extra/config/conf -n extra/Configs/Config.$(TARGET_ARCH)
 
 defconfig: extra/config/conf
-       rm -rf include/bits
+       $(RM) -r include/bits
        $(INSTALL) -d include/bits
        @./extra/config/conf -d extra/Configs/Config.$(TARGET_ARCH)
 
 
 clean:
-       - find . \( -name \*.o -o -name \*.a -o -name \*.so -o -name core -o -name .\#\* \) -exec rm -f {} \;
-       @rm -rf tmp lib include/bits libc/tmp _install
+       - find . \( -name \*.o -o -name \*.a -o -name \*.so -o -name core -o -name .\#\* \) -exec $(RM) {} \;
+       @$(RM) -r tmp lib include/bits libc/tmp _install
        $(MAKE) -C test clean
        $(MAKE) -C ldso clean
        $(MAKE) -C libc/misc/internals clean
@@ -436,36 +436,36 @@ clean:
        $(MAKE) -C extra/locale clean
        @set -e; \
        for i in `(cd $(TOPDIR)/libc/sysdeps/linux/common/sys; ls *.h)` ; do \
-               rm -f include/sys/$$i; \
+               $(RM) include/sys/$$i; \
        done; \
        if [ -d libc/sysdeps/linux/$(TARGET_ARCH)/sys ] ; then \
                for i in `(cd libc/sysdeps/linux/$(TARGET_ARCH)/sys; ls *.h)` ; do \
-                       rm -f include/sys/$$i; \
+                       $(RM) include/sys/$$i; \
                done; \
        fi;
-       @rm -f include/linux include/scsi include/asm
+       @$(RM) include/linux include/scsi include/asm
        @if [ -d libc/sysdeps/linux/$(TARGET_ARCH) ]; then              \
            $(MAKE) -C libc/sysdeps/linux/$(TARGET_ARCH) clean;         \
        fi;
        @if [ "$(TARGET_ARCH)" = "mipsel" ]; then \
            $(MAKE) -C libc/sysdeps/linux/mips clean; \
-           rm -f ldso/ldso/mipsel; \
-           rm -f libc/sysdeps/linux/mipsel; \
-           rm -f libpthread/linuxthreads/sysdeps/mipsel; \
+           $(RM) ldso/ldso/mipsel; \
+           $(RM) libc/sysdeps/linux/mipsel; \
+           $(RM) libpthread/linuxthreads/sysdeps/mipsel; \
        fi;
 
 distclean: clean
-       rm -f .config .config.old .config.cmd
+       $(RM) .config .config.old .config.cmd
        $(MAKE) -C extra clean
 
 release: distclean
        cd ..;                                  \
-       rm -rf uClibc-$(VERSION);               \
+       $(RM) -r uClibc-$(VERSION);             \
        cp -fa uClibc uClibc-$(VERSION);        \
        find uClibc-$(VERSION)/ -type f         \
-           -name .\#* -exec rm -rf {} \; ;     \
+           -name .\#* -exec $(RM) -r {} \; ;   \
        find uClibc-$(VERSION)/ -type d         \
-           -name CVS  -exec rm -rf {} \; ;     \
+           -name CVS  -exec $(RM) -r {} \; ;   \
                                                \
        tar -cvzf uClibc-$(VERSION).tar.gz uClibc-$(VERSION)/;
 
index a2d6d14..96ba134 100644 (file)
--- a/Rules.mak
+++ b/Rules.mak
@@ -44,6 +44,7 @@ NM= $(CROSS)nm
 STRIPTOOL= $(CROSS)strip
 
 INSTALL= install
+RM= rm -f
 
 # Select the compiler needed to build binaries for your development system
 HOSTCC=gcc
index 4dd33b5..899dda4 100644 (file)
@@ -35,7 +35,7 @@ tags:
        ctags -R
 
 clean: subdirs_clean
-       rm -f *.[oa] *~ core
+       $(RM) *.[oa] *~ core
 
 subdirs: $(patsubst %, _dir_%, $(DIRS))
 subdirs_clean: $(patsubst %, _dirclean_%, $(DIRS) $(EXTRA_DIRS_TO_CLEAN))
index e56ab7d..822a483 100644 (file)
@@ -103,9 +103,9 @@ endif
 ncurses:
        @echo "main() {}" > lxtemp.c
        @if $(HOSTCC) lxtemp.c $(LIBS) ; then \
-               rm -f lxtemp.c a.out; \
+               $(RM) lxtemp.c a.out; \
        else \
-               rm -f lxtemp.c; \
+               $(RM) lxtemp.c; \
                echo -e "\007" ;\
                echo ">> Unable to find the Ncurses libraries." ;\
                echo ">>" ;\
@@ -119,6 +119,6 @@ ncurses:
        fi
 
 clean:
-       rm -f *.o *~ core $(TARGETS) $(MCONF_OBJS) $(CONF_OBJS) \
+       $(RM) *.o *~ core $(TARGETS) $(MCONF_OBJS) $(CONF_OBJS) \
                conf mconf zconf.tab.c zconf.tab.h lex.zconf.c lkc_defs.h
 
index a374556..bbe17cc 100644 (file)
@@ -85,4 +85,4 @@ endif
        done
 
 clean:
-       rm -f gcc-uClibc.h *-uclibc-gcc *-uclibc-ld core
+       $(RM) gcc-uClibc.h *-uclibc-gcc *-uclibc-ld core
index eed345d..2d8a147 100644 (file)
@@ -86,10 +86,10 @@ pregen:
        cat uClibc_locale_data.h | awk 'BEGIN{i=1}{ if ( /WANT_/ ) i = /endif/ ; else if (i) print $0 }' > ../../include/bits/uClibc_locale_data.h
 
 clean:
-       rm -f *.[oa] *~ core
-       rm -f gen_wc8bit gen_wctype gen_locale gen_ldc gen_collate
-       rm -f c8tables.h wctables.h locale_tables.h lt_defines.h locale_collate.h
-       rm -f gen_mmap locale.mmap lmmtolso
-       rm -f locale_data.c uClibc_locale_data.h
+       $(RM) *.[oa] *~ core
+       $(RM) gen_wc8bit gen_wctype gen_locale gen_ldc gen_collate
+       $(RM) c8tables.h wctables.h locale_tables.h lt_defines.h locale_collate.h
+       $(RM) gen_mmap locale.mmap lmmtolso
+       $(RM) locale_data.c uClibc_locale_data.h
 
 .PHONY: pregen links-target
index dcf83be..44a4456 100644 (file)
@@ -51,5 +51,5 @@ headers:
 
 clean:
        set -e ; for d in $(ALL_SUBDIRS) ; do $(MAKE) -C $$d $@ ; done
-       -find . -name '*~' | xargs rm -f
-       rm -f include/elf.h include/boot1_arch.h include/ld_syscalls.h include/ld_sysdep.h
+       -find . -name '*~' | xargs $(RM)
+       $(RM) include/elf.h include/boot1_arch.h include/ld_syscalls.h include/ld_sysdep.h
index e026fca..80dd8c0 100644 (file)
@@ -44,6 +44,7 @@ endif
 XXFLAGS+=$(shell $(CC) -print-search-dirs | sed -ne "s/install: *\(.*\)/-I\1include/gp")
 LDFLAGS=$(CPU_LDFLAGS-y) -shared --warn-common --export-dynamic --sort-common \
        -z combreloc --discard-locals --discard-all
+
 CSRC= ldso.c #hash.c readelflib1.c $(TARGET_ARCH)/elfinterp.c
 COBJS=$(patsubst %.c,%.o, $(CSRC))
 ASRC=$(shell ls $(TARGET_ARCH)/*.S)
@@ -90,6 +91,5 @@ $(AOBJS): %.o : %.S
 
 ldso.o: ldso.c hash.c readelflib1.c $(TARGET_ARCH)/elfinterp.c _dl_progname.h
 
-clean::
-       $(RM) -f $(UCLIBC_LDSO)* $(OBJS) $(LDSO_FULLNAME)* core *.o *.a *.s *.i _dl_progname.h ldso.h *~
-
+clean:
+       $(RM) $(UCLIBC_LDSO)* $(OBJS) $(LDSO_FULLNAME)* core *.o *.a *.s *.i _dl_progname.h ldso.h *~
index a0358fe..3152b31 100644 (file)
@@ -61,7 +61,7 @@ ar-target: $(OBJS) $(PIC_OBJS)
        $(AR) $(ARFLAGS) $(LIBDL) ../ldso/$(TARGET_ARCH)/resolve.o $(OBJS)
        $(AR) $(ARFLAGS) $(LIBDL_PIC) $(PIC_OBJS)
        $(INSTALL) -d $(TOPDIR)lib
-       rm -f $(TOPDIR)lib/$(LIBDL)
+       $(RM) $(TOPDIR)lib/$(LIBDL)
        $(INSTALL) -m 644 $(LIBDL) $(TOPDIR)lib
 
 
@@ -81,11 +81,10 @@ shared:
                --no-whole-archive $(TOPDIR)/libc/misc/internals/interp.o \
                -L$(TOPDIR)/lib -lc;
        $(INSTALL) -d $(TOPDIR)lib
-       rm -f $(TOPDIR)lib/$(LIBDL_SHARED_FULLNAME) $(TOPDIR)lib/$(LIBDL_SHARED).$(MAJOR_VERSION)
+       $(RM) $(TOPDIR)lib/$(LIBDL_SHARED_FULLNAME) $(TOPDIR)lib/$(LIBDL_SHARED).$(MAJOR_VERSION)
        $(INSTALL) -m 644 $(LIBDL_SHARED_FULLNAME) $(TOPDIR)lib
        (cd $(TOPDIR)lib && ln -sf $(LIBDL_SHARED_FULLNAME) $(LIBDL_SHARED)); 
        (cd $(TOPDIR)lib && ln -sf $(LIBDL_SHARED_FULLNAME) $(LIBDL_SHARED).$(MAJOR_VERSION)); 
 
 clean:
-       $(RM) -f .depend $(LIBDL_SHARED)* $(LIBDL_SHARED_FULLNAME) core *.o *.a *.s *.i tmp_make foo *~
-
+       $(RM) .depend $(LIBDL_SHARED)* $(LIBDL_SHARED_FULLNAME) core *.o *.a *.s *.i tmp_make foo *~
index de6aef5..36873ac 100644 (file)
@@ -30,4 +30,4 @@ ld.so.info: ld.so.texi
        makeinfo $<
 
 clean:
-       rm -f $(ALL) *~
+       $(RM) $(ALL) *~
index 87e69b4..06de2df 100644 (file)
@@ -95,6 +95,6 @@ ldd.target:   ldd.c
        $(STRIPTOOL) -x -R .note -R .comment $@
 
 clean:
-       rm -f $(TARGETS) *.o *~ core *.target elf.h
+       $(RM) $(TARGETS) *.o *~ core *.target elf.h
 
 readelf.c readsoname.c ldconfig.c ldd.c:       headers
index d7effaa..a03d152 100644 (file)
@@ -54,7 +54,7 @@ all: halfclean subdirs $(LIBNAME) $(DO_SHARED)
 ar-target:
        $(CROSS)ranlib $(LIBNAME)
        $(INSTALL) -d $(TOPDIR)lib
-       rm -f $(TOPDIR)lib/$(LIBNAME)
+       $(RM) $(TOPDIR)lib/$(LIBNAME)
        $(INSTALL) -m 644 $(LIBNAME) $(TOPDIR)lib
 
 $(LIBNAME): subdirs ar-target
@@ -65,15 +65,15 @@ shared: $(TOPDIR)lib/$(LIBNAME) $(LIBGCC_NEED)
                --whole-archive $(LIBGCC_NEED) $(LIBNAME) \
                $(TOPDIR)/libc/misc/internals/interp.o --no-whole-archive \
                -init __uClibc_init $(LIBGCC)
-       @true #rm -rf tmp
+       @true #$(RM) -r tmp
        $(INSTALL) -d $(TOPDIR)lib
-       rm -f $(TOPDIR)lib/$(SHARED_FULLNAME)
+       $(RM) $(TOPDIR)lib/$(SHARED_FULLNAME)
        $(INSTALL) -m 644 $(SHARED_FULLNAME) $(TOPDIR)lib
        (cd ../lib && ln -sf $(SHARED_FULLNAME) libc.so);
        (cd ../lib && ln -sf $(SHARED_FULLNAME) $(SHARED_MAJORNAME));
 
 $(LIBGCC_NEED): $(TOPDIR)lib/$(LIBNAME)
-       @rm -rf tmp
+       @$(RM) -r tmp
        @mkdir tmp
        $(AR) rv $@
        (cd tmp && CC="$(CC)" LD="$(LD)" LDFLAGS="$(CPU_LDFLAGS-y)" \
@@ -81,15 +81,15 @@ $(LIBGCC_NEED): $(TOPDIR)lib/$(LIBNAME)
                /bin/sh $(TOPDIR)../extra/scripts/get-needed-libgcc-objects.sh)
 
 halfclean:
-       @rm -f $(LIBNAME) uClibc_config.h
-       @rm -f $(SHARED_FULLNAME) $(SHARED_MAJORNAME) uClibc-0.* libc.so*
+       @$(RM) $(LIBNAME) uClibc_config.h
+       @$(RM) $(SHARED_FULLNAME) $(SHARED_MAJORNAME) uClibc-0.* libc.so*
 
 tags:
        ctags -R
 
 clean: subdirs_clean halfclean
-       @rm -rf tmp
-       rm -f include/asm include/linux include/bits
+       @$(RM) -r tmp
+       $(RM) include/asm include/linux include/bits
 
 subdirs: $(patsubst %, _dir_%, $(DIRS))
 subdirs_clean: $(patsubst %, _dirclean_%, $(DIRS))
index 092480f..ef3d6cf 100644 (file)
@@ -83,7 +83,7 @@ $(COBJS): %.o : %.c
        $(STRIPTOOL) -x -R .note -R .comment $*.o
 
 clean: subdirs_clean
-       rm -f *.[oa] *~ core
+       $(RM) *.[oa] *~ core
 
 subdirs: $(patsubst %, _dir_%, $(DIRS))
 subdirs_clean: $(patsubst %, _dirclean_%, $(ALL_SUBDIRS))
index 0cfa64d..5b8975c 100644 (file)
@@ -62,5 +62,5 @@ $(COBJS): %.o : %.c
        $(STRIPTOOL) -x -R .note -R .comment $*.o
 
 clean:
-       rm -f *.[oa] *~ core
+       $(RM) *.[oa] *~ core
 
index f35337a..da7c44f 100644 (file)
@@ -58,7 +58,7 @@ tags:
        ctags -R
 
 clean: subdirs_clean
-       rm -f *.[oa] *~ core
+       $(RM) *.[oa] *~ core
 
 subdirs: $(patsubst %, _dir_%, $(DIRS))
 subdirs_clean: $(patsubst %, _dirclean_%, $(DIRS))
index 6dc004b..cfd469c 100644 (file)
@@ -40,4 +40,4 @@ $(COBJS): %.o : %.c
        $(STRIPTOOL) -x -R .note -R .comment $*.o
 
 clean:
-       rm -f *.[oa] *~ core
+       $(RM) *.[oa] *~ core
index dc73ba7..26bb337 100644 (file)
@@ -65,5 +65,5 @@ $(MOBJx): $(MSRC)
 $(OBJS): Makefile
 
 clean:
-       rm -f *.[oa] *~ core
+       $(RM) *.[oa] *~ core
 
index c3dc95a..4ccf3d3 100644 (file)
@@ -42,5 +42,5 @@ $(COBJS): %.o : %.c
        $(STRIPTOOL) -x -R .note -R .comment $*.o
 
 clean:
-       rm -f *.[oa] *~ core
+       $(RM) *.[oa] *~ core
 
index cb293b0..7540106 100644 (file)
@@ -35,5 +35,5 @@ $(COBJS): %.o : %.c
        $(STRIPTOOL) -x -R .note -R .comment $*.o
 
 clean:
-       rm -f *.[oa] *~ core
+       $(RM) *.[oa] *~ core
 
index 195097e..fc1a1bf 100644 (file)
@@ -44,5 +44,5 @@ $(COBJS): %.o : %.c
        $(STRIPTOOL) -x -R .note -R .comment $*.o
 
 clean:
-       rm -f *.[oa] *~ core
+       $(RM) *.[oa] *~ core
 
index d3373a0..af067bd 100644 (file)
@@ -40,5 +40,5 @@ $(COBJS): %.o : %.c
        $(STRIPTOOL) -x -R .note -R .comment $*.o
 
 clean:
-       rm -f *.[oa] *~ core
+       $(RM) *.[oa] *~ core
 
index ae21c22..a9df0c7 100644 (file)
@@ -39,5 +39,5 @@ $(MOBJ): $(MSRC)
        $(STRIPTOOL) -x -R .note -R .comment $*.o
 
 clean:
-       rm -f *.[oa] *~ core
+       $(RM) *.[oa] *~ core
 
index e53c95b..31a3b80 100644 (file)
@@ -42,5 +42,5 @@ $(COBJS): %.o : %.c
 glob64.o: glob64.c glob.c
 
 clean:
-       rm -f *.[oa] *~ core
+       $(RM) *.[oa] *~ core
 
index f2acc8b..6e3fd84 100644 (file)
@@ -40,4 +40,4 @@ $(COBJS): %.o : %.c
        $(STRIPTOOL) -x -R .note -R .comment $*.o
 
 clean:
-       rm -f *.[oa] *~ core
+       $(RM) *.[oa] *~ core
index e9dd86b..486cf8d 100644 (file)
@@ -53,5 +53,5 @@ $(COBJS): %.o : %.c
        $(STRIPTOOL) -x -R .note -R .comment $*.o
 
 clean:
-       rm -f *.[oa] interp.c *~ core
+       $(RM) *.[oa] interp.c *~ core
 
index 140ae31..df59c9d 100644 (file)
@@ -46,5 +46,5 @@ $(COBJS): %.o : %.c
        $(STRIPTOOL) -x -R .note -R .comment $*.o
 
 clean:
-       rm -f *.[oa] *~ core
+       $(RM) *.[oa] *~ core
 
index 17b208b..752f0aa 100644 (file)
@@ -67,6 +67,6 @@ locale_data.o:
 $(OBJS): Makefile
 
 clean:
-       rm -f *.[oa] *~ core locale_data.c
+       $(RM) *.[oa] *~ core locale_data.c
 
 .PHONY: data
index 65fa346..7430dfe 100644 (file)
@@ -40,5 +40,5 @@ $(COBJS): %.o : %.c
        $(STRIPTOOL) -x -R .note -R .comment $*.o
 
 clean:
-       rm -f *.[oa] *~ core
+       $(RM) *.[oa] *~ core
 
index 3146c7a..d01af1d 100644 (file)
@@ -45,5 +45,5 @@ $(COBJS): %.o : %.c
        $(STRIPTOOL) -x -R .note -R .comment $*.o
 
 clean:
-       rm -f *.[oa] *~ core
+       $(RM) *.[oa] *~ core
 
index fe2920b..5bdda32 100644 (file)
@@ -40,5 +40,5 @@ $(COBJS): %.o : %.c
        $(STRIPTOOL) -x -R .note -R .comment $*.o
 
 clean:
-       rm -f *.[oa] *~ core
+       $(RM) *.[oa] *~ core
 
index fa28f21..9d579b9 100644 (file)
@@ -69,5 +69,5 @@ $(COBJS): %.o : %.c
        $(STRIPTOOL) -x -R .note -R .comment $*.o
 
 clean:
-       rm -f *.[oa] *~ core
+       $(RM) *.[oa] *~ core
 
index 89eb7fd..55c21b8 100644 (file)
@@ -43,5 +43,5 @@ $(COBJS): %.o : %.c
        $(STRIPTOOL) -x -R .note -R .comment $*.o
 
 clean:
-       rm -f *.[oa] *~ core
+       $(RM) *.[oa] *~ core
 
index f715ece..8eb583c 100644 (file)
@@ -40,5 +40,5 @@ $(COBJS): %.o : %.c
        $(STRIPTOOL) -x -R .note -R .comment $*.o
 
 clean:
-       rm -f *.[oa] *~ core
+       $(RM) *.[oa] *~ core
 
index b3c60cb..eaf5dd1 100644 (file)
@@ -65,7 +65,7 @@ $(COBJS): %.o : %.c
        $(STRIPTOOL) -x -R .note -R .comment $*.o
 
 clean: subdirs_clean
-       rm -f *.[oa] *~ core
+       $(RM) *.[oa] *~ core
 
 subdirs: $(patsubst %, _dir_%, $(DIRS))
 subdirs_clean: $(patsubst %, _dirclean_%, $(DIRS))
index 302214b..29ed0d9 100644 (file)
@@ -65,5 +65,5 @@ $(COBJS): %.o : %.c
        $(STRIPTOOL) -x -R .note -R .comment $*.o
 
 clean:
-       rm -f *.[oa] *~ core
+       $(RM) *.[oa] *~ core
 
index 6a5fbcb..1b81408 100644 (file)
@@ -35,5 +35,5 @@ $(COBJS): %.o : %.c
        $(STRIPTOOL) -x -R .note -R .comment $*.o
 
 clean:
-       rm -f *.[oa] *~ core
+       $(RM) *.[oa] *~ core
 
index 1a50070..7a506a4 100644 (file)
@@ -40,4 +40,4 @@ $(COBJS): %.o : %.c
        $(STRIPTOOL) -x -R .note -R .comment $*.o
 
 clean:
-       rm -f *.[oa] *~ core
+       $(RM) *.[oa] *~ core
index 4a3e2fc..c449e3f 100644 (file)
@@ -66,5 +66,5 @@ iconv.target: wchar.c
        $(STRIPTOOL) -x -R .note -R .comment $@
 
 clean:
-       rm -f *.[oa] *~ core iconv.target
+       $(RM) *.[oa] *~ core iconv.target
 
index 4473494..2910364 100644 (file)
@@ -57,5 +57,5 @@ $(MOBJx): $(MSRC)
        $(STRIPTOOL) -x -R .note -R .comment $*.o
 
 clean:
-       rm -f *.[oa] *~ core
+       $(RM) *.[oa] *~ core
 
index edfd819..5e29f47 100644 (file)
@@ -35,5 +35,5 @@ $(COBJS): %.o : %.c
        $(STRIPTOOL) -x -R .note -R .comment $*.o
 
 clean:
-       rm -f *.[oa] *~ core
+       $(RM) *.[oa] *~ core
 
index f2cdf5a..288b84a 100644 (file)
@@ -53,4 +53,4 @@ __getgrent_r.c: config.h
 initgroups.c: config.h
 
 clean:
-       rm -f *.[oa] *~ core
+       $(RM) *.[oa] *~ core
index 8a9d846..28d87a7 100644 (file)
@@ -40,5 +40,5 @@ $(COBJS): %.o : %.c
        $(STRIPTOOL) -x -R .note -R .comment $*.o
 
 clean:
-       rm -f *.[oa] *~ core
+       $(RM) *.[oa] *~ core
 
index b92eed2..b0ba70b 100644 (file)
@@ -107,5 +107,5 @@ $(COBJS): %.o : %.c
 $(OBJ): Makefile
 
 clean:
-       rm -f *.[oa] *~ core
+       $(RM) *.[oa] *~ core
 
index a60af27..a22a8eb 100644 (file)
@@ -134,7 +134,7 @@ $(patsubst %, _dirclean_%, $(ALL_SUBDIRS)) : dummy
        $(MAKE) -C $(patsubst _dirclean_%, %, $@) clean
 
 clean: subdirs_clean
-       rm -f *.[oa] *~ core
+       $(RM) *.[oa] *~ core
 
 .PHONY: dummy
 
index a0a5f7b..bd52b21 100644 (file)
@@ -42,5 +42,5 @@ $(COBJS): %.o : %.c
        $(STRIPTOOL) -x -R .note -R .comment $*.o
 
 clean:
-       rm -f *.[oa] *~ core
+       $(RM) *.[oa] *~ core
 
index 8f21488..7172198 100644 (file)
@@ -56,4 +56,4 @@ $(COBJS): %.o : %.c ../../../include/bits/uClibc_config.h
        $(STRIPTOOL) -x -R .note -R .comment $*.o
 
 clean:
-       rm -f *.[oa] *~ core
+       $(RM) *.[oa] *~ core
index 1b12924..d9fec82 100644 (file)
@@ -86,5 +86,5 @@ $(COBJS): %.o : %.c
        $(STRIPTOOL) -x -R .note -R .comment $*.o
 
 clean:
-       rm -f *.[oa] *~ core
+       $(RM) *.[oa] *~ core
 
index 85c5309..f71a403 100644 (file)
@@ -58,6 +58,6 @@ headers:
 
 
 clean:
-       rm -f *.[oa] *~ core
-       rm -f bits/sysnum.h
+       $(RM) *.[oa] *~ core
+       $(RM) bits/sysnum.h
 
index 038b994..532b550 100644 (file)
@@ -66,6 +66,6 @@ headers:
 
 
 clean:
-       rm -f *.[oa] *~ core
-       rm -f bits/sysnum.h
+       $(RM) *.[oa] *~ core
+       $(RM) bits/sysnum.h
 
index 1b51e09..1edfe7b 100644 (file)
@@ -102,5 +102,5 @@ headers:
        cd $(TOPDIR)/include && ln -fs ../libc/sysdeps/linux/common/fpu_control.h .
 
 clean:
-       rm -f *.[oa] *~ core crt[in].* *.S
+       $(RM) *.[oa] *~ core crt[in].* *.S
 
index 8a860f1..39bebf8 100644 (file)
@@ -58,5 +58,5 @@ $(COBJS): %.o : %.c
 headers:
 
 clean:
-       rm -f *.[oa] *~ core
+       $(RM) *.[oa] *~ core
 
index 45ee299..177e783 100644 (file)
@@ -58,9 +58,9 @@ headers:
 
 
 clean:
-       rm -f *.[oa] *~ core
-       rm -f bits/sysnum.h
+       $(RM) *.[oa] *~ core
+       $(RM) bits/sysnum.h
 ifneq ($(strip $(HAVE_ELF)),y)
-       rm -f $(TOPDIR)/include/float.h
+       $(RM) $(TOPDIR)/include/float.h
 endif
 
index 605278f..d38e111 100644 (file)
@@ -56,8 +56,8 @@ $(COBJS): %.o : %.c
 headers:
 
 clean:
-       rm -f *.[oa] *~ core
+       $(RM) *.[oa] *~ core
 ifneq ($(strip $(HAVE_ELF)),y)
-       rm -f $(TOPDIR)/include/float.h
+       $(RM) $(TOPDIR)/include/float.h
 endif
 
index 2f721eb..75e7a27 100644 (file)
@@ -69,6 +69,6 @@ headers:
 
 
 clean:
-       rm -f *.[oa] *~ core
-       rm -f bits/sysnum.h
+       $(RM) *.[oa] *~ core
+       $(RM) bits/sysnum.h
 
index 9fd8a83..fed680d 100644 (file)
@@ -56,6 +56,6 @@ headers:
 
 
 clean:
-       rm -f *.[oa] *~ core
-       rm -f bits/sysnum.h
+       $(RM) *.[oa] *~ core
+       $(RM) bits/sysnum.h
 
index 7369bc9..321dcf7 100644 (file)
@@ -69,9 +69,9 @@ endif
 
 
 clean:
-       rm -f *.[oa] *~ core
-       rm -f bits/sysnum.h
+       $(RM) *.[oa] *~ core
+       $(RM) bits/sysnum.h
 ifneq ($(strip $(HAVE_ELF)),y)
-       rm -f $(TOPDIR)/include/float.h
+       $(RM) $(TOPDIR)/include/float.h
 endif
 
index cc09801..b15fc9d 100644 (file)
@@ -60,6 +60,6 @@ $(COBJS): %.o : %.c
 headers:
 
 clean:
-       rm -f *.[oa] *~ core
-       rm -f bits/sysnum.h
+       $(RM) *.[oa] *~ core
+       $(RM) bits/sysnum.h
 
index a226a84..361746c 100644 (file)
@@ -58,7 +58,7 @@ headers:
        cd $(TOPDIR)/include && ln -fs ../libc/sysdeps/linux/mips/fpu_control.h .
 
 clean:
-       rm -f *.[oa] *~ core
-       rm -f bits/sysnum.h
-       rm -f $(TOPDIR)/include/sgidefs.h
+       $(RM) *.[oa] *~ core
+       $(RM) bits/sysnum.h
+       $(RM) $(TOPDIR)/include/sgidefs.h
 
index e9798cf..380bd77 100644 (file)
@@ -68,6 +68,6 @@ headers:
        cd $(TOPDIR)/include && ln -fs ../libc/sysdeps/linux/powerpc/fpu_control.h .
 
 clean:
-       rm -f *.[oa] *~ core
-       rm -f bits/sysnum.h
+       $(RM) *.[oa] *~ core
+       $(RM) bits/sysnum.h
 
index b4266c9..99ccaaa 100644 (file)
@@ -67,6 +67,6 @@ headers:
        cd $(TOPDIR)/include && ln -fs ../libc/sysdeps/linux/sh/fpu_control.h .
 
 clean:
-       rm -f *.[oa] *~ core
-       rm -f bits/sysnum.h
+       $(RM) *.[oa] *~ core
+       $(RM) bits/sysnum.h
 
index 6e91927..8c0b9f3 100644 (file)
@@ -60,6 +60,6 @@ $(COBJS): %.o : %.c
 headers:
 
 clean:
-       rm -f *.[oa] *~ core
-       rm -f bits/sysnum.h
+       $(RM) *.[oa] *~ core
+       $(RM) bits/sysnum.h
 
index 19e9d93..abee5e4 100644 (file)
@@ -58,6 +58,6 @@ headers:
        cd $(TOPDIR)/include && ln -fs ../libc/sysdeps/linux/sparc/fpu_control.h .
 
 clean:
-       rm -f *.[oa] *~ core
-       rm -f bits/sysnum.h
+       $(RM) *.[oa] *~ core
+       $(RM) bits/sysnum.h
 
index cc09801..b15fc9d 100644 (file)
@@ -60,6 +60,6 @@ $(COBJS): %.o : %.c
 headers:
 
 clean:
-       rm -f *.[oa] *~ core
-       rm -f bits/sysnum.h
+       $(RM) *.[oa] *~ core
+       $(RM) bits/sysnum.h
 
index d27c0a9..6ccfa9a 100644 (file)
@@ -51,5 +51,5 @@ $(COBJS): %.o : %.c
        $(STRIPTOOL) -x -R .note -R .comment $*.o
 
 clean:
-       rm -f *.[oa] *~ core
+       $(RM) *.[oa] *~ core
 
index f30bfd3..a8d9747 100644 (file)
@@ -115,5 +115,5 @@ $(patsubst %, _dirclean_%, $(DIRS)) : dummy
 dummy:
 
 clean:
-       rm -f *.[oa] *~ core gen_sysconf sysconf_*.c
+       $(RM) *.[oa] *~ core gen_sysconf sysconf_*.c
 
index f745f10..30b1e1d 100644 (file)
@@ -38,7 +38,7 @@ $(LIBCRYPT): ar-target
 ar-target: $(OBJS)
        $(AR) $(ARFLAGS) $(LIBCRYPT) $(OBJS)
        $(INSTALL) -d $(TOPDIR)lib
-       rm -f $(TOPDIR)lib/$(LIBCRYPT)
+       $(RM) $(TOPDIR)lib/$(LIBCRYPT)
        $(INSTALL) -m 644 $(LIBCRYPT) $(TOPDIR)lib
 
 $(OBJS): %.o : %.c
@@ -53,11 +53,10 @@ shared: all
                --no-whole-archive $(TOPDIR)/libc/misc/internals/interp.o \
                -L$(TOPDIR)/lib -lc;
        $(INSTALL) -d $(TOPDIR)lib
-       rm -f $(TOPDIR)lib/$(LIBCRYPT_SHARED_FULLNAME) $(TOPDIR)lib/$(LIBCRYPT_SHARED).$(MAJOR_VERSION)
+       $(RM) $(TOPDIR)lib/$(LIBCRYPT_SHARED_FULLNAME) $(TOPDIR)lib/$(LIBCRYPT_SHARED).$(MAJOR_VERSION)
        $(INSTALL) -m 644 $(LIBCRYPT_SHARED_FULLNAME) $(TOPDIR)lib;
        (cd $(TOPDIR)lib && ln -sf $(LIBCRYPT_SHARED_FULLNAME) $(LIBCRYPT_SHARED)); 
        (cd $(TOPDIR)lib && ln -sf $(LIBCRYPT_SHARED_FULLNAME) $(LIBCRYPT_SHARED).$(MAJOR_VERSION)); 
 
 clean: 
-       rm -f *.[oa] *~ core $(LIBCRYPT_SHARED)* $(LIBCRYPT_SHARED_FULLNAME)*
-
+       $(RM) *.[oa] *~ core $(LIBCRYPT_SHARED)* $(LIBCRYPT_SHARED_FULLNAME)*
index ab148ba..efc48a7 100644 (file)
@@ -43,7 +43,7 @@ $(LIBC): ar-target
 ar-target: $(OBJS)
        $(AR) $(ARFLAGS) $(LIBINTL) $(OBJS)
        $(INSTALL) -d $(TOPDIR)lib
-       rm -f $(TOPDIR)lib/$(LIBINTL)
+       $(RM) $(TOPDIR)lib/$(LIBINTL)
        $(INSTALL) -m 644 $(LIBINTL) $(TOPDIR)lib/
 
 $(MOBJ): $(MSRC)
@@ -56,11 +56,10 @@ shared: all
                --no-whole-archive $(TOPDIR)/libc/misc/internals/interp.o \
                -L$(TOPDIR)/lib -lc;
        $(INSTALL) -d $(TOPDIR)lib
-       rm -f $(TOPDIR)lib/$(LIBINTL_SHARED_FULLNAME) $(TOPDIR)lib/$(LIBINTL_SHARED).$(MAJOR_VERSION)
+       $(RM) $(TOPDIR)lib/$(LIBINTL_SHARED_FULLNAME) $(TOPDIR)lib/$(LIBINTL_SHARED).$(MAJOR_VERSION)
        $(INSTALL) -m 644 $(LIBINTL_SHARED_FULLNAME) $(TOPDIR)lib
        (cd $(TOPDIR)lib && ln -sf $(LIBINTL_SHARED_FULLNAME) $(LIBINTL_SHARED)); 
        (cd $(TOPDIR)lib && ln -sf $(LIBINTL_SHARED_FULLNAME) $(LIBINTL_SHARED).$(MAJOR_VERSION)); 
 
 clean:
-       rm -f *.[oa] *~ core $(LIBINTL_SHARED)* $(LIBINTL_SHARED_FULLNAME)*
-
+       $(RM) *.[oa] *~ core $(LIBINTL_SHARED)* $(LIBINTL_SHARED_FULLNAME)*
index 200faf3..e864f59 100644 (file)
@@ -89,7 +89,7 @@ $(LIBM): ar-target
        @if [ -f $(LIBM) ] ; then \
                set -x -e; \
                $(INSTALL) -d $(TOPDIR)lib; \
-               rm -f $(TOPDIR)lib/$(LIBM); \
+               $(RM) $(TOPDIR)lib/$(LIBM); \
                $(INSTALL) -m 644 $(LIBM) $(TOPDIR)lib; \
        fi;
 
@@ -101,7 +101,7 @@ shared: all
                --no-whole-archive $(TOPDIR)/libc/misc/internals/interp.o \
                -L$(TOPDIR)/lib -lc; \
            $(INSTALL) -d $(TOPDIR)lib; \
-           rm -f $(TOPDIR)lib/$(LIBM_SHARED_FULLNAME) $(TOPDIR)lib/$(LIBM_SHARED).$(MAJOR_VERSION); \
+           $(RM) $(TOPDIR)lib/$(LIBM_SHARED_FULLNAME) $(TOPDIR)lib/$(LIBM_SHARED).$(MAJOR_VERSION); \
            $(INSTALL) -m 644 $(LIBM_SHARED_FULLNAME) $(TOPDIR)lib; \
            (cd $(TOPDIR)lib && ln -sf $(LIBM_SHARED_FULLNAME) $(LIBM_SHARED)); \
            (cd $(TOPDIR)lib && ln -sf $(LIBM_SHARED_FULLNAME) $(LIBM_SHARED).$(MAJOR_VERSION)); \
@@ -120,7 +120,7 @@ tags:
        ctags -R
 
 clean: subdirs_clean
-       rm -f *.[oa] *~ core $(LIBM_SHARED)* $(LIBM_SHARED_FULLNAME)*
+       $(RM) *.[oa] *~ core $(LIBM_SHARED)* $(LIBM_SHARED_FULLNAME)*
 
 subdirs: $(patsubst %, _dir_%, $(DIRS))
 subdirs_clean: $(patsubst %, _dirclean_%, $(ALL_SUBDIRS))
@@ -132,4 +132,3 @@ $(patsubst %, _dirclean_%, $(ALL_SUBDIRS)) : dummy
        $(MAKE) -C $(patsubst _dirclean_%, %, $@) clean
 
 .PHONY: dummy
-
index 10dacb0..84e0b94 100644 (file)
@@ -67,5 +67,5 @@ tags:
        ctags -R
 
 clean: 
-       rm -f *.[oa] *~ core
+       $(RM) *.[oa] *~ core
 
index 37ac9eb..920da03 100644 (file)
@@ -33,7 +33,7 @@ $(LIBNSL): ar-target
 ar-target: $(OBJS)
        $(AR) $(ARFLAGS) $(LIBNSL) $(OBJS)
        $(INSTALL) -d $(TOPDIR)lib
-       rm -f $(TOPDIR)lib/$(LIBNSL)
+       $(RM) $(TOPDIR)lib/$(LIBNSL)
        $(INSTALL) -m 644 $(LIBNSL) $(TOPDIR)lib
 
 $(OBJS): %.o : %.c
@@ -48,11 +48,10 @@ shared: all
                --no-whole-archive $(TOPDIR)/libc/misc/internals/interp.o \
                -L$(TOPDIR)/lib -lc;
        $(INSTALL) -d $(TOPDIR)lib
-       rm -f $(TOPDIR)lib/$(LIBNSL_SHARED_FULLNAME) $(TOPDIR)lib/$(LIBNSL_SHARED).$(MAJOR_VERSION)
+       $(RM) $(TOPDIR)lib/$(LIBNSL_SHARED_FULLNAME) $(TOPDIR)lib/$(LIBNSL_SHARED).$(MAJOR_VERSION)
        $(INSTALL) -m 644 $(LIBNSL_SHARED_FULLNAME) $(TOPDIR)lib
        (cd $(TOPDIR)lib && ln -sf $(LIBNSL_SHARED_FULLNAME) $(LIBNSL_SHARED)); 
        (cd $(TOPDIR)lib && ln -sf $(LIBNSL_SHARED_FULLNAME) $(LIBNSL_SHARED).$(MAJOR_VERSION)); 
 
 clean: 
-       rm -f *.[oa] *~ core $(LIBNSL_SHARED)* $(LIBNSL_SHARED_FULLNAME)*
-
+       $(RM) *.[oa] *~ core $(LIBNSL_SHARED)* $(LIBNSL_SHARED_FULLNAME)*
index b2b1c34..a12655b 100644 (file)
@@ -56,7 +56,7 @@ $(LIBPTHREAD): subdirs
        @if [ -f $(LIBPTHREAD) ] ; then \
                set -e; \
                $(INSTALL) -d $(TOPDIR)lib; \
-               rm -f $(TOPDIR)lib/$(LIBPTHREAD); \
+               $(RM) $(TOPDIR)lib/$(LIBPTHREAD); \
                $(INSTALL) -m 644 $(LIBPTHREAD) $(TOPDIR)lib; \
        fi;
 
@@ -64,7 +64,7 @@ $(LIBTHREAD_DB): subdirs
        @if [ -f $(LIBTHREAD_DB) ] ; then \
                set -e; \
                $(INSTALL) -d $(TOPDIR)lib; \
-               rm -f $(TOPDIR)lib/$(LIBTHREAD_DB); \
+               $(RM) $(TOPDIR)lib/$(LIBTHREAD_DB); \
                $(INSTALL) -m 644 $(LIBTHREAD_DB) $(TOPDIR)lib; \
        fi;
 
@@ -83,7 +83,7 @@ shared: all
                        --no-whole-archive $(TOPDIR)/libc/misc/internals/interp.o \
                        -L$(TOPDIR)/lib -lc $(END_FILES); \
                $(INSTALL) -d $(TOPDIR)lib; \
-               rm -f $(TOPDIR)lib/$(LIBPTHREAD_SHARED_FULLNAME) \
+               $(RM) $(TOPDIR)lib/$(LIBPTHREAD_SHARED_FULLNAME) \
                        $(TOPDIR)lib/$(LIBPTHREAD_SHARED).$(MAJOR_VERSION); \
                $(INSTALL) -m 644 $(LIBPTHREAD_SHARED_FULLNAME) $(TOPDIR)lib; \
                (cd $(TOPDIR)lib && ln -sf $(LIBPTHREAD_SHARED_FULLNAME) \
@@ -98,7 +98,7 @@ shared: all
                        --no-whole-archive $(TOPDIR)/libc/misc/internals/interp.o \
                        -L$(TOPDIR)/lib -lc $(END_FILES); \
                $(INSTALL) -d $(TOPDIR)lib; \
-               rm -f $(TOPDIR)lib/$(LIBTHREAD_DB_SHARED_FULLNAME) \
+               $(RM) $(TOPDIR)lib/$(LIBTHREAD_DB_SHARED_FULLNAME) \
                        $(TOPDIR)lib/$(LIBTHREAD_DB_SHARED).$(MAJOR_VERSION); \
                $(INSTALL) -m 644 $(LIBTHREAD_DB_SHARED_FULLNAME) $(TOPDIR)lib; \
                (cd $(TOPDIR)lib && ln -sf $(LIBTHREAD_DB_SHARED_FULLNAME) \
@@ -120,9 +120,7 @@ $(patsubst %, _dirclean_%, $(ALL_SUBDIRS)) : dummy
        $(MAKE) -C $(patsubst _dirclean_%, %, $@) clean
 
 clean: subdirs_clean
-       rm -f *.[oa] *~ core $(LIBPTHREAD) $(LIBPTHREAD_SHARED_FULLNAME) \
+       $(RM) *.[oa] *~ core $(LIBPTHREAD) $(LIBPTHREAD_SHARED_FULLNAME) \
                $(LIBTHREAD_DB) $(LIBTHREAD_DB_SHARED_FULLNAME)
 
 .PHONY: dummy
-
-
index 1a32932..7d62879 100644 (file)
@@ -70,6 +70,6 @@ else
 endif
 
 clean:
-       rm -f *.[oa] *~ core
+       $(RM) *.[oa] *~ core
 
 
index d5d3ec5..dea86b0 100644 (file)
@@ -69,6 +69,6 @@ $(COBJS): %.o : %.c
        $(STRIPTOOL) -x -R .note -R .comment $*.o
 
 clean:
-       rm -f *.[oa] *~ core
+       $(RM) *.[oa] *~ core
 
 
index 98e7166..8658842 100644 (file)
@@ -39,7 +39,7 @@ $(LIBRESOLV): ar-target
 ar-target: $(OBJS)
        $(AR) $(ARFLAGS) $(LIBRESOLV) $(OBJS)
        $(INSTALL) -d $(TOPDIR)lib
-       rm -f $(TOPDIR)lib/$(LIBRESOLV)
+       $(RM) $(TOPDIR)lib/$(LIBRESOLV)
        $(INSTALL) -m 644 $(LIBRESOLV) $(TOPDIR)lib
 
 $(OBJS): %.o : %.c
@@ -54,11 +54,10 @@ shared: all
                --no-whole-archive $(TOPDIR)/libc/misc/internals/interp.o \
                -L$(TOPDIR)/lib -lc;
        $(INSTALL) -d $(TOPDIR)lib
-       rm -f $(TOPDIR)lib/$(LIBRESOLV_SHARED_FULLNAME) $(TOPDIR)lib/$(LIBRESOLV_SHARED).$(MAJOR_VERSION)
+       $(RM) $(TOPDIR)lib/$(LIBRESOLV_SHARED_FULLNAME) $(TOPDIR)lib/$(LIBRESOLV_SHARED).$(MAJOR_VERSION)
        $(INSTALL) -m 644 $(LIBRESOLV_SHARED_FULLNAME) $(TOPDIR)lib
        (cd $(TOPDIR)lib && ln -sf $(LIBRESOLV_SHARED_FULLNAME) $(LIBRESOLV_SHARED)); 
        (cd $(TOPDIR)lib && ln -sf $(LIBRESOLV_SHARED_FULLNAME) $(LIBRESOLV_SHARED).$(MAJOR_VERSION)); 
 
 clean: 
-       rm -f *.[oa] *~ core $(LIBRESOLV_SHARED)* $(LIBRESOLV_SHARED_FULLNAME)*
-
+       $(RM) *.[oa] *~ core $(LIBRESOLV_SHARED)* $(LIBRESOLV_SHARED_FULLNAME)*
index b149b0e..572ca0a 100644 (file)
@@ -42,7 +42,7 @@ $(LIBC): ar-target
 ar-target: $(OBJS)
        $(AR) $(ARFLAGS) $(LIBUTIL) $(OBJS)
        $(INSTALL) -d $(TOPDIR)lib
-       rm -f $(TOPDIR)lib/$(LIBUTIL)
+       $(RM) $(TOPDIR)lib/$(LIBUTIL)
        $(INSTALL) -m 644 $(LIBUTIL) $(TOPDIR)lib/
 
 $(OBJS): %.o : %.c
@@ -55,11 +55,10 @@ shared: all
                --no-whole-archive $(TOPDIR)/libc/misc/internals/interp.o \
                -L$(TOPDIR)/lib -lc;
        $(INSTALL) -d $(TOPDIR)lib
-       rm -f $(TOPDIR)lib/$(LIBUTIL_SHARED_FULLNAME) $(TOPDIR)lib/$(LIBUTIL_SHARED).$(MAJOR_VERSION)
+       $(RM) $(TOPDIR)lib/$(LIBUTIL_SHARED_FULLNAME) $(TOPDIR)lib/$(LIBUTIL_SHARED).$(MAJOR_VERSION)
        $(INSTALL) -m 644 $(LIBUTIL_SHARED_FULLNAME) $(TOPDIR)lib
        (cd $(TOPDIR)lib && ln -sf $(LIBUTIL_SHARED_FULLNAME) $(LIBUTIL_SHARED)); 
        (cd $(TOPDIR)lib && ln -sf $(LIBUTIL_SHARED_FULLNAME) $(LIBUTIL_SHARED).$(MAJOR_VERSION)); 
 
 clean:
-       rm -f *.[oa] *~ core $(LIBUTIL_SHARED)* $(LIBUTIL_SHARED_FULLNAME)*
-
+       $(RM) *.[oa] *~ core $(LIBUTIL_SHARED)* $(LIBUTIL_SHARED_FULLNAME)*
index 2a0f3c0..397cc42 100644 (file)
@@ -44,7 +44,7 @@ tags:
        ctags -R
        
 clean: subdirs_clean
-       rm -f *.[oa] *~ core
+       $(RM) *.[oa] *~ core
 
 subdirs: $(patsubst %, _dir_%, $(DIRS))
 subdirs_clean: $(patsubst %, _dirclean_%, $(ALL_SUBDIRS))
index 42c8cdd..7b41594 100644 (file)
@@ -46,6 +46,8 @@ CC= $(CROSS)gcc
 STRIPTOOL=strip
 LDD=../$(TESTDIR)ldso/util/ldd
 
+RM= rm -f
+
 # Select the compiler needed to build binaries for your development system
 HOSTCC=gcc
 HOSTCFLAGS=-O2 -Wall
index a5a01db..cc4637b 100644 (file)
@@ -35,6 +35,6 @@ arg_test: arg_test.c Makefile $(TESTDIR)/Config $(TESTDIR)/Rules.mak $(CC)
        -@ echo " "
 
 clean:
-       rm -f *.[oa] *~ core $(TARGETS)
+       $(RM) *.[oa] *~ core $(TARGETS)
 
 
index 71f231d..1933cfe 100644 (file)
@@ -35,6 +35,6 @@ assert: assert.c Makefile $(TESTDIR)/Config $(TESTDIR)/Rules.mak $(CC)
        -@ echo " "
 
 clean:
-       rm -f *.[oa] *~ core $(TARGETS)
+       $(RM) *.[oa] *~ core $(TARGETS)
 
 
index 78732ec..c7c7b32 100644 (file)
@@ -68,6 +68,6 @@ md5c-test: md5c-test.c Makefile $(TESTDIR)/Config $(TESTDIR)/Rules.mak $(CC)
        -@ echo " "
 
 clean:
-       rm -f *.[oa] *~ core crypt_glibc crypt crypt_glibc.out crypt.out md5c-test
+       $(RM) *.[oa] *~ core crypt_glibc crypt crypt_glibc.out crypt.out md5c-test
 
 
index 16c49c2..e359561 100644 (file)
@@ -35,6 +35,6 @@ ctype_run:
        ./ctype
        -@ echo " "
 clean:
-       rm -f *.[oa] *~ core $(TARGETS)
+       $(RM) *.[oa] *~ core $(TARGETS)
 
 
index 529f08a..2861653 100644 (file)
@@ -71,6 +71,6 @@ run: libtest2.so libtest1.so test1 test2 test3 dltest libtest.so dltest2 libtest
        -$(DEBUG_LIBS)=all ./dltest
 
 clean:
-       rm -f *.o libtest1.so* libtest2.so* test1 test2 test3 \
+       $(RM) *.o libtest1.so* libtest2.so* test1 test2 test3 \
                dltest dltest2 libtest.so libtest3.so
 
index dc10cc7..7fdef73 100644 (file)
@@ -124,6 +124,6 @@ realloc0_glibc: realloc0.c Makefile
 
 
 clean:
-       rm -f *.[oa] *~ core $(TARGETS)
+       $(RM) *.[oa] *~ core $(TARGETS)
 
 
index c9231c5..2133904 100644 (file)
@@ -100,6 +100,6 @@ libm-test.c: $(ulps-file) libm-test.inc gen-libm-test.pl
        $(PERL) ./gen-libm-test.pl -u $< ./libm-test.inc -o "." 2>&1 > /dev/null
 
 clean:
-       rm -f *.[oa] *~ core $(TARGETS) $(generated) rint_glibc.out rint.out
+       $(RM) *.[oa] *~ core $(TARGETS) $(generated) rint_glibc.out rint.out
 
 
index d94e487..828f6b2 100644 (file)
@@ -58,7 +58,7 @@ fdopen: fdopen.c Makefile $(TESTDIR)/Config $(TESTDIR)/Rules.mak $(CC)
        -@ echo " "
 
 dirent_source:
-       -@ rm -f $(TARGETS)
+       -@ $(RM) $(TARGETS)
        -@ echo "-------"
        -@ echo "dirent.c source: "
        -@ echo " "
@@ -126,7 +126,7 @@ dirent64_diff: dirent64 dirent64_glibc
        -@ echo " "
 
 clean:
-       rm -f *.[oa] *~ core dirent dirent_glibc dirent_glibc.out dirent.out \
+       $(RM) *.[oa] *~ core dirent dirent_glibc dirent_glibc.out dirent.out \
                dirent64 dirent64_glibc dirent64_glibc.out dirent64.out \
                outb sem fdopen
 
index fd75855..70d17b7 100644 (file)
@@ -35,6 +35,6 @@ mmap: mmap.c Makefile $(TESTDIR)/Config $(TESTDIR)/Rules.mak $(CC)
        -@ echo " "
 
 clean:
-       rm -f *.[oa] *~ core $(TARGETS)
+       $(RM) *.[oa] *~ core $(TARGETS)
 
 
index 16eb16e..1e51a4b 100644 (file)
@@ -86,5 +86,5 @@ ex7: ex7.c Makefile $(TESTDIR)/Config $(TESTDIR)/Rules.mak $(TESTCC)
        -@ echo " "
 
 clean:
-       rm -f *.[oa] *~ core $(TARGETS)
+       $(RM) *.[oa] *~ core $(TARGETS)
 
index 3a3b3b5..f1f63b4 100644 (file)
@@ -87,6 +87,6 @@ test_grp_diff: test_grp_glibc test_grp
        -@ echo " "
 
 clean:
-       rm -f *.[oa] *~ core $(TARGETS) *.out
+       $(RM) *.[oa] *~ core $(TARGETS) *.out
 
 
index a4a3519..569a5f3 100644 (file)
@@ -35,6 +35,6 @@ setjmp_test: setjmp_test.c Makefile $(TESTDIR)/Config $(TESTDIR)/Rules.mak $(CC)
        -@ echo " "
 
 clean:
-       rm -f *.[oa] *~ core $(TARGETS)
+       $(RM) *.[oa] *~ core $(TARGETS)
 
 
index 662ee4d..904ea85 100644 (file)
@@ -69,6 +69,6 @@ sigchld_glibc: sigchld.c Makefile
        -@ echo " "
 
 clean:
-       rm -f *.[oa] *~ core $(TARGETS)
+       $(RM) *.[oa] *~ core $(TARGETS)
 
 
index afe591f..2678bb2 100644 (file)
@@ -26,7 +26,7 @@ TARGETS=hello_source hello hello_glibc tiny
 all: $(TARGETS)
 
 hello_source:
-       -@ rm -f $(TARGETS)
+       -@ $(RM) $(TARGETS)
        -@ echo "-------"
        -@ echo "hello.c source: "
        -@ echo " "
@@ -75,6 +75,6 @@ tiny: tiny.c Makefile $(TESTDIR)/Config $(TESTDIR)/Rules.mak $(CC)
 
 
 clean:
-       rm -f *.[oa] *~ core $(TARGETS)
+       $(RM) *.[oa] *~ core $(TARGETS)
 
 
index 5c284fb..39e5b2d 100644 (file)
@@ -27,7 +27,7 @@ TARGETS=stat_diff stat64_diff
 all: $(TARGETS)
 
 stat_source:
-       -@ rm -f $(TARGETS)
+       -@ $(RM) $(TARGETS)
        -@ echo "-------"
        -@ echo "stat.c source: "
        -@ echo " "
@@ -95,7 +95,7 @@ stat64_diff: stat64 stat64_glibc
        -@ echo " "
 
 clean:
-       rm -f *.[oa] *~ core stat stat_glibc stat_glibc.out stat.out \
+       $(RM) *.[oa] *~ core stat stat_glibc stat_glibc.out stat.out \
                stat64 stat64_glibc stat64_glibc.out stat64.out
 
 
index 8747c2a..38ad960 100644 (file)
@@ -187,6 +187,6 @@ ptytest: ptytest.c Makefile $(TESTDIR)/Config $(TESTDIR)/Rules.mak $(CC)
 
 
 clean:
-       rm -f *.[oa] *~ core $(TARGETS) *.out
+       $(RM) *.[oa] *~ core $(TARGETS) *.out
 
 
index df83b78..e25da9c 100644 (file)
@@ -103,6 +103,6 @@ strsignal: ../../libc/string/strsignal.c
 
 
 clean:
-       rm -f *.[oa] *~ core $(TARGETS) testcopy.gnu.out testcopy.out
+       $(RM) *.[oa] *~ core $(TARGETS) testcopy.gnu.out testcopy.out
 
 
index 881cf48..2d48251 100644 (file)
@@ -52,6 +52,6 @@ termios_glibc: termios.c Makefile
        -@ echo " "
 
 clean:
-       rm -f *.[oa] *~ core $(TARGETS)
+       $(RM) *.[oa] *~ core $(TARGETS)
 
 
index f64b542..8be5b6d 100644 (file)
@@ -101,6 +101,6 @@ preadwrite: preadwrite.c Makefile $(TESTDIR)/Config $(TESTDIR)/Rules.mak $(CC)
        -@ echo " "
 
 clean:
-       rm -f *.[oa] *~ core $(TARGETS)
+       $(RM) *.[oa] *~ core $(TARGETS)