OSDN Git Service

Speed up clean target, don't recurse where possible, remove unneeded actions
authorPeter S. Mazinger <ps.m@gmx.net>
Tue, 27 Sep 2005 08:12:29 +0000 (08:12 -0000)
committerPeter S. Mazinger <ps.m@gmx.net>
Tue, 27 Sep 2005 08:12:29 +0000 (08:12 -0000)
19 files changed:
Makefile
libc/sysdeps/linux/alpha/Makefile
libc/sysdeps/linux/arm/Makefile
libc/sysdeps/linux/bfin/Makefile
libc/sysdeps/linux/e1/Makefile
libc/sysdeps/linux/frv/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/nios/Makefile
libc/sysdeps/linux/nios2/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/sysdeps/linux/x86_64/Makefile

index c7295c7..d1d7d9e 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -28,8 +28,6 @@ noconfig_targets := menuconfig config oldconfig randconfig \
 TOPDIR=./
 include Rules.mak
 
-ALL_SUBDIRS = ldso libc libcrypt libresolv libnsl libutil librt libm libpthread libintl test utils # extra
-
 DIRS = ldso libc libcrypt libresolv libnsl libutil librt
 ifeq ($(strip $(UCLIBC_HAS_FLOATS)),y)
        DIRS += libm
@@ -353,15 +351,16 @@ defconfig: extra/config/conf
        $(INSTALL) -d include/bits
        @./extra/config/conf -d extra/Configs/Config.in
 
-subdirs_clean: $(patsubst %, _dirclean_%, $(ALL_SUBDIRS))
-$(patsubst %, _dirclean_%, $(ALL_SUBDIRS)): dummy
-       $(MAKE) -C $(patsubst _dirclean_%, %, $@) clean
-
-clean: subdirs_clean
+clean:
        - find . \( -name \*.o -o -name \*.a -o -name \*.so -o -name core -o -name .\#\* \) -exec $(RM) {} \;
        @$(RM) -r lib include/bits
-       $(MAKE) -C libc/misc/internals clean
+       $(RM) libc/misc/internals/interp.c
+       $(RM) include/fpu_control.h
        $(MAKE) -C extra/locale clean
+       $(MAKE) -C ldso clean
+       $(MAKE) -C libpthread clean
+       $(MAKE) -C test clean
+       $(MAKE) -C utils clean
        @set -e; \
        for i in `(cd $(TOPDIR)/libc/sysdeps/linux/common/sys; ls *.h)` ; do \
                $(RM) include/sys/$$i; \
index c378583..cf7f1be 100644 (file)
@@ -81,4 +81,3 @@ headers:
 
 clean:
        $(RM) *.[oa] *~ core
-       $(RM) bits/sysnum.h
index 65df753..6fe4961 100644 (file)
@@ -86,4 +86,3 @@ headers:
 
 clean:
        $(RM) *.[oa] *~ core
-       $(RM) bits/sysnum.h
index 8fb0511..a76e003 100644 (file)
@@ -80,5 +80,3 @@ headers:
 
 clean:
        $(RM) *.[oa] *~ core
-       $(RM) bits/sysnum.h
-       $(RM) $(TOPDIR)lib/crt0.o
index 60d6ec0..3c18524 100644 (file)
@@ -85,7 +85,3 @@ headers:
 
 clean:
        $(RM) *.[oa] *~ core
-       $(RM) bits/sysnum.h
-ifneq ($(strip $(HAVE_ELF)),y)
-       $(RM) $(TOPDIR)/include/float.h
-endif
index dbf78d1..5cda0b4 100644 (file)
@@ -76,5 +76,4 @@ headers:
 
 clean:
        $(RM) *.[oa] *~ core
-       $(RM) bits/sysnum.h
        $(RM) $(TOPDIR)/include/link.h
index bde820b..31ed12b 100644 (file)
@@ -86,5 +86,3 @@ headers:
 
 clean:
        $(RM) *.[oa] *~ core
-       $(RM) bits/sysnum.h
-       $(RM) $(TOPDIR)include/fpu_control.h
index 2701e99..a081e36 100644 (file)
@@ -82,4 +82,3 @@ headers:
 
 clean:
        $(RM) *.[oa] *~ core
-       $(RM) bits/sysnum.h
index 7e59522..c3a58aa 100644 (file)
@@ -96,7 +96,6 @@ endif
 
 clean:
        $(RM) *.[oa] *~ core
-       $(RM) bits/sysnum.h
 ifneq ($(strip $(HAVE_ELF)),y)
        $(RM) $(TOPDIR)/include/float.h
 endif
index 269d53e..e47bbef 100644 (file)
@@ -88,4 +88,3 @@ headers:
 
 clean:
        $(RM) *.[oa] *~ core
-       $(RM) bits/sysnum.h
index 82484c0..52bed5e 100644 (file)
@@ -88,6 +88,4 @@ headers:
 
 clean:
        $(RM) *.[oa] *~ core
-       $(RM) bits/sysnum.h
-       $(RM) $(TOPDIR)/include/fpu_control.h
        $(RM) $(TOPDIR)/include/sgidefs.h
index cdfd9a2..b351a96 100644 (file)
@@ -80,5 +80,3 @@ headers:
 
 clean:
        $(RM) *.[oa] *~ core
-       $(RM) bits/sysnum.h
-       $(RM) $(TOPDIR)/include/fpu_control.h
index 7cb737e..e3abf4b 100644 (file)
@@ -80,5 +80,3 @@ headers:
 
 clean:
        $(RM) *.[oa] *~ core
-       $(RM) bits/sysnum.h
-       $(RM) $(TOPDIR)/include/fpu_control.h
index 4c345c0..393c215 100644 (file)
@@ -87,4 +87,3 @@ headers:
 
 clean:
        $(RM) *.[oa] *~ core
-       $(RM) bits/sysnum.h
index f224acd..aecb890 100644 (file)
@@ -86,5 +86,3 @@ headers:
 
 clean:
        $(RM) *.[oa] *~ core
-       $(RM) bits/sysnum.h
-       $(RM) gmon-start.S
index 3b5e8e9..27df532 100644 (file)
@@ -85,4 +85,3 @@ headers:
 
 clean:
        $(RM) *.[oa] *~ core
-       $(RM) bits/sysnum.h
index 8a2549c..6a160cf 100644 (file)
@@ -81,4 +81,3 @@ headers:
 
 clean:
        $(RM) *.[oa] *~ core
-       $(RM) bits/sysnum.h
index e549250..f63bcdf 100644 (file)
@@ -85,4 +85,3 @@ headers:
 
 clean:
        $(RM) *.[oa] *~ core
-       $(RM) bits/sysnum.h
index 3c48d9e..0ac79f3 100644 (file)
@@ -85,5 +85,3 @@ headers:
 
 clean:
        $(RM) *.[oa] *~ core
-       $(RM) bits/sysnum.h
-       $(RM) gmon-start.S