help-make
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Improvement on parallel make


From: Philip Guenther
Subject: Re: Improvement on parallel make
Date: Tue, 12 Dec 2006 01:23:15 -0700

[Dang it, fingers slipped and I sent while still editting.  So to continue...]

Note that the desired makefile mentioned above:
 local_objects = a.o b.o c.o d.o
 all: all-recursive .WAIT all-local
 all-recursive:
      $(MAKE) -C subdir all
 all-local: $(local_objects)

can *currently* be implemented like this:

 local_objects = a.o b.o c.o d.o
 all: all-recursive
     $(MAKE) all-local
 all-recursive:
     $(MAKE) -C subdir all
 all-local: $(local_objects)

The choice to use recursive make means you've given up on maximizing
your parallelism (because your dependency tree has to be a superset of
the real tree).  As long as you've burned that bridge, why not use it
here to express the ordering?


Philip Guenther




reply via email to

[Prev in Thread] Current Thread [Next in Thread]