[toplevel] Fix make install (PR 22440)

Alexandre Oliva aoliva@redhat.com
Thu Jul 14 17:56:00 GMT 2005


On Jul 14, 2005, Paolo Bonzini <paolo.bonzini@lu.unisi.ch> wrote:

>> This patch can not be correct; dependencies in make are not order
>> sensitive.

> Dependencies on phony targets are processed in order though, because
> they act as subroutines.

Not quite.  Although they do act as subroutines, there's nothing to
stop them from being processed in parallel, unless you explicitly add
deps to serialize them.  The GNU make manual, in fact, says, in the
context of using phony targets for sub-directories and recursive
makes:

<quote>

     foo: baz

   Here we've also declared that the `foo' subdirectory cannot be built
until after the `baz' subdirectory is complete; this kind of
relationship declaration is particularly important when attempting
parallel builds.

</quote>

-- 
Alexandre Oliva         http://www.lsd.ic.unicamp.br/~oliva/
Red Hat Compiler Engineer   aoliva@{redhat.com, gcc.gnu.org}
Free Software Evangelist  oliva@{lsd.ic.unicamp.br, gnu.org}



More information about the Gcc-patches mailing list