lkml.org 
[lkml]   [1996]   [Sep]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
SubjectRe: Perl make depend made faster
On Sun, 15 Sep 1996, Linus Torvalds wrote:

>
> If you want to make "make depend" faster, I don't see why perl would be
> the answer.

It's just the easiest answer, in this case.

> Perl has the problem that it easily uses lots of memory, and
> also that it isn't always there. If people really care, how about
> optimizing this patch instead?
>
Thou art a harsh taskmaster, but teach wisely. I'm not sure I care _that_
much :)

I think I will just stare at mkdep.c for a couple of days and ponder on
the ways of the wizards, hoping that I will learn as much more of C as I
did of Perl while writing depend.pl.

Only one thing comes to mind, but buys a scant second and hardwires the
include subdirs in the main Makefile so I don't know if it's worth it.
Anyway, the patch is appended ( call me anal retentive, but I don't like
much the idea of doing dependencies for all architectures ).

> (This just does the thing in C - you end compiling "mkdep", but it does
> have the advantage that we know that a C compiler is always installed,
> because we couldn't compile the kernel without one anyway).
>
> Linus

Well, make mrproper doesn't run very often on my system, so the net gain
seems very high. Thanks,

Luca Lizzeri


--- Makefile.bak Sun Sep 15 17:40:22 1996
+++ Makefile Sun Sep 15 18:14:17 1996
@@ -38,7 +38,6 @@
NM =$(CROSS_COMPILE)nm
STRIP =$(CROSS_COMPILE)strip
MAKE =make
-AWK =gawk

all: do-it-all

@@ -388,5 +387,5 @@

.hdepend: scripts/mkdep
rm -f $@
- scripts/mkdep `find $(HPATH) -name \*.h ! -name modversions.h -print` > .$@
+ scripts/mkdep `find $(HPATH)/{asm,linux,net,scsi} -follow -name \*.h ! -name modversions.h -print` > .$@
mv .$@ $@



\
 
 \ /
  Last update: 2005-03-22 13:38    [W:0.107 / U:1.048 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site