Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 4 Feb 1996 04:24:13 +1100
From:      Bruce Evans <bde@zeta.org.au>
To:        bde@zeta.org.au, rgrimes@GndRsh.aac.dev.com
Cc:        CVS-committers@freebsd.org, cvs-lib@freebsd.org, jdp@polstra.com, nate@sri.MT.net, peter@jhome.dialix.com
Subject:   Re: cvs commit: src/lib/csu/i386 crt0.c
Message-ID:  <199602031724.EAA22622@godzilla.zeta.org.au>

next in thread | raw e-mail | index | archive | help
>> If I ran `make world' a lot (I haven't tried it yet!) then I would
>> remove the `make depend' step to speed it up a little.  If NOCLEANDIR
>> isn't defined, the .depend files are almost never used for `make world'
>> because `make depend all' gives bogus dependencies for the `all' target
>> (the .depend files don't exist when the dependencies are determined).

>You keep saying this, but it is not totally true, _especially_ when
>this command is run from a high level in the source tree.

>Ie, cd /usr/src; make depend all; does infact DTRT as first a full sweep
>over the src tree creating .depends is run, then a full pass over the
>tree running make all (at this point the .depends do exist).

Oops.  I keep forgetting that it works for SUBDIRs.

>There are several cases though that should be changed to:
>make depend && make all.

It should be changed for all directories that have objects in them.  E.g.,
it should be changed for building `make' as part of the build-tools target,
but it doesn't need to be changed for building cc as part of the tools
target.  It should be changed for building cc anyway, because the top
top level Makefile shouldn't know about the layout of the lower level
directories.  Only 1 of the 29 `${MAKE} depend all ...' commands in
/usr/src/Makefile doesn't need to be changed :-).

Bruce



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199602031724.EAA22622>