From: Benoit Poulot-Cazajous <Benoit.Poulot-Cazajous@Jaluna.com>
To: Marcelo Tosatti <marcelo@conectiva.com.br>
Cc: Linux Kernel Mailing List <linux-kernel@vger.kernel.org>
Subject: [PATCH][2.4] Speedup 'make dep'
Date: 21 Jan 2003 02:03:42 +0100 [thread overview]
Message-ID: <lnlm1ffh5d.fsf@walhalla.agaha> (raw)
In-Reply-To: <3E2BDF17.60501@namesys.com>
Hi Marcelo,
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
^C and other failures.
Regards,
-- Benoit
diff -ru linux-2.4.20/Makefile linux-2.4.20-bpc/Makefile
--- linux-2.4.20/Makefile 2003-01-10 22:32:25.000000000 +0100
+++ linux-2.4.20-bpc/Makefile 2003-01-20 09:52:43.000000000 +0100
@@ -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
next prev parent reply other threads:[~2003-01-21 0:55 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-01-20 11:35 [BK] [2.4] ReiserFS iput deadlock fix Hans Reiser
2003-01-21 1:03 ` Benoit Poulot-Cazajous [this message]
2003-02-26 23:25 ` [PATCH][2.4] Speedup 'make dep' Marc-Christian Petersen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=lnlm1ffh5d.fsf@walhalla.agaha \
--to=benoit.poulot-cazajous@jaluna.com \
--cc=linux-kernel@vger.kernel.org \
--cc=marcelo@conectiva.com.br \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox