[prev in list] [next in list] [prev in thread] [next in thread] 

List:       git-commits-24
Subject:    [PATCH] Speedup 'make dep'
From:       Linux Kernel Mailing List <linux-kernel () vger ! kernel ! org>
Date:       2003-02-27 5:41:01
[Download RAW message or body]

ChangeSet 1.1009, 2003/02/27 02:41:01-03:00, m.c.p@wolk-project.de

	[PATCH] Speedup 'make dep'
	
	 During 'make dep', make spends most of its time (sometimes more
	 than 75%) uselessly analysing .hdepend. Delaying its production
	 makes 'make dep' much faster.
	 The following patch also builds .depend last, in order to make
	 the dependency information generation more resistant against
	  and other failures.


# This patch includes the following deltas:
#	           ChangeSet	1.1008  -> 1.1009 
#	            Makefile	1.204   -> 1.205  
#

 Makefile |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)


diff -Nru a/Makefile b/Makefile
--- a/Makefile	Wed Feb 26 22:32:19 2003
+++ b/Makefile	Wed Feb 26 22:32:19 2003
@@ -488,12 +488,13 @@
 	find . -type f -print | sort | xargs sum > .SUMS
 
 dep-files: scripts/mkdep archdep include/linux/version.h
-	scripts/mkdep -- init/*.c > .depend
-	scripts/mkdep -- `find $(FINDHPATH) \( -name SCCS -o -name .svn \) -prune -o \
-follow -name \*.h ! -name modversions.h -print` > .hdepend +	rm -f .depend .hdepend
 	$(MAKE) $(patsubst %,_sfdep_%,$(SUBDIRS)) _FASTDEP_ALL_SUB_DIRS="$(SUBDIRS)"
 ifdef CONFIG_MODVERSIONS
 	$(MAKE) update-modverfile
 endif
+	scripts/mkdep -- `find $(FINDHPATH) \( -name SCCS -o -name .svn \) -prune -o \
-follow -name \*.h ! -name modversions.h -print` > .hdepend +	scripts/mkdep -- \
init/*.c > .depend  
 ifdef CONFIG_MODVERSIONS
 MODVERFILE := $(TOPDIR)/include/linux/modversions.h
-
To unsubscribe from this list: send the line "unsubscribe bk-commits-24" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic