Browse Source

Speed up clean target, don't recurse where possible, remove unneeded actions

Peter S. Mazinger 18 years ago
parent
commit
68a33eafc4

+ 7 - 8
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; \

+ 0 - 1
libc/sysdeps/linux/alpha/Makefile

@@ -81,4 +81,3 @@ headers:
 
 clean:
 	$(RM) *.[oa] *~ core
-	$(RM) bits/sysnum.h

+ 0 - 1
libc/sysdeps/linux/arm/Makefile

@@ -86,4 +86,3 @@ headers:
 
 clean:
 	$(RM) *.[oa] *~ core
-	$(RM) bits/sysnum.h

+ 0 - 2
libc/sysdeps/linux/bfin/Makefile

@@ -80,5 +80,3 @@ headers:
 
 clean:
 	$(RM) *.[oa] *~ core
-	$(RM) bits/sysnum.h
-	$(RM) $(TOPDIR)lib/crt0.o

+ 0 - 4
libc/sysdeps/linux/e1/Makefile

@@ -85,7 +85,3 @@ headers:
 
 clean:
 	$(RM) *.[oa] *~ core
-	$(RM) bits/sysnum.h
-ifneq ($(strip $(HAVE_ELF)),y)
-	$(RM) $(TOPDIR)/include/float.h
-endif

+ 0 - 1
libc/sysdeps/linux/frv/Makefile

@@ -76,5 +76,4 @@ headers:
 
 clean:
 	$(RM) *.[oa] *~ core
-	$(RM) bits/sysnum.h
 	$(RM) $(TOPDIR)/include/link.h

+ 0 - 2
libc/sysdeps/linux/i386/Makefile

@@ -86,5 +86,3 @@ headers:
 
 clean:
 	$(RM) *.[oa] *~ core
-	$(RM) bits/sysnum.h
-	$(RM) $(TOPDIR)include/fpu_control.h

+ 0 - 1
libc/sysdeps/linux/i960/Makefile

@@ -82,4 +82,3 @@ headers:
 
 clean:
 	$(RM) *.[oa] *~ core
-	$(RM) bits/sysnum.h

+ 0 - 1
libc/sysdeps/linux/m68k/Makefile

@@ -96,7 +96,6 @@ endif
 
 clean:
 	$(RM) *.[oa] *~ core
-	$(RM) bits/sysnum.h
 ifneq ($(strip $(HAVE_ELF)),y)
 	$(RM) $(TOPDIR)/include/float.h
 endif

+ 0 - 1
libc/sysdeps/linux/microblaze/Makefile

@@ -88,4 +88,3 @@ headers:
 
 clean:
 	$(RM) *.[oa] *~ core
-	$(RM) bits/sysnum.h

+ 0 - 2
libc/sysdeps/linux/mips/Makefile

@@ -88,6 +88,4 @@ headers:
 
 clean:
 	$(RM) *.[oa] *~ core
-	$(RM) bits/sysnum.h
-	$(RM) $(TOPDIR)/include/fpu_control.h
 	$(RM) $(TOPDIR)/include/sgidefs.h

+ 0 - 2
libc/sysdeps/linux/nios/Makefile

@@ -80,5 +80,3 @@ headers:
 
 clean:
 	$(RM) *.[oa] *~ core
-	$(RM) bits/sysnum.h
-	$(RM) $(TOPDIR)/include/fpu_control.h

+ 0 - 2
libc/sysdeps/linux/nios2/Makefile

@@ -80,5 +80,3 @@ headers:
 
 clean:
 	$(RM) *.[oa] *~ core
-	$(RM) bits/sysnum.h
-	$(RM) $(TOPDIR)/include/fpu_control.h

+ 0 - 1
libc/sysdeps/linux/powerpc/Makefile

@@ -87,4 +87,3 @@ headers:
 
 clean:
 	$(RM) *.[oa] *~ core
-	$(RM) bits/sysnum.h

+ 0 - 2
libc/sysdeps/linux/sh/Makefile

@@ -86,5 +86,3 @@ headers:
 
 clean:
 	$(RM) *.[oa] *~ core
-	$(RM) bits/sysnum.h
-	$(RM) gmon-start.S

+ 0 - 1
libc/sysdeps/linux/sh64/Makefile

@@ -85,4 +85,3 @@ headers:
 
 clean:
 	$(RM) *.[oa] *~ core
-	$(RM) bits/sysnum.h

+ 0 - 1
libc/sysdeps/linux/sparc/Makefile

@@ -81,4 +81,3 @@ headers:
 
 clean:
 	$(RM) *.[oa] *~ core
-	$(RM) bits/sysnum.h

+ 0 - 1
libc/sysdeps/linux/v850/Makefile

@@ -85,4 +85,3 @@ headers:
 
 clean:
 	$(RM) *.[oa] *~ core
-	$(RM) bits/sysnum.h

+ 0 - 2
libc/sysdeps/linux/x86_64/Makefile

@@ -85,5 +85,3 @@ headers:
 
 clean:
 	$(RM) *.[oa] *~ core
-	$(RM) bits/sysnum.h
-	$(RM) gmon-start.S