This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: make -j patch -- part 1 all targets [gcc/Makefile.in]
- To: DJ Delorie <dj at redhat dot com>
- Subject: Re: make -j patch -- part 1 all targets [gcc/Makefile.in]
- From: "Zack Weinberg" <zackw at stanford dot edu>
- Date: Wed, 23 May 2001 15:48:24 -0700
- Cc: kelley dot cook at home dot com, gcc-patches at gcc dot gnu dot org
- References: <3B0C2268.1040203@home.com> <200105232153.RAA10212@greed.delorie.com>
On Wed, May 23, 2001 at 05:53:59PM -0400, DJ Delorie wrote:
>
> > So I moved the *_H definitions above the where the target/host
> > overrides are included.
>
> Make does not process definitions in order that way. It doesn't
> matter where they are in the Makefile relative to each other, so I
> can't see how this patch fixes anything.
In dependency lines, it does. Compare
FOO = bar
foo: $(FOO)
@echo foo
and
foo: $(FOO)
@echo foo
FOO = bar
$ make -f test.mk
make: *** No rule to make target `bar', needed by `foo'. Stop.
$ make -f test2.mk
foo
--
zw The beginning of almost every story is actually a bone, something with
which to court the dog, which may bring you closer to the lady.
-- Amos Oz, _The Story Begins_