This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: make -j patch -- part 1 all targets [gcc/Makefile.in]


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_


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]