From 68a33eafc43aacb139ea21efbab91a5c2efe8069 Mon Sep 17 00:00:00 2001 From: "Peter S. Mazinger" Date: Tue, 27 Sep 2005 08:12:29 +0000 Subject: Speed up clean target, don't recurse where possible, remove unneeded actions --- Makefile | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index c7295c7ff..d1d7d9e64 100644 --- 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; \ -- cgit v1.2.3