Messages in this thread | | | Subject | Re: compile problems with the kernel | Date | Wed, 25 Mar 1998 08:22:32 -0800 | From | Tim Wright <> |
| |
> "Marty Leisner" <leisner@sdsp.mc.xerox.com> writes: > > Why don't we just leave make alone > > (so you can do > > > > make -j 2 > > like you normally do instead of > > make MAKE='make -j 2' > > Easy, because the main Make just does a > for i in $SUBDIRS; do $MAKE -C $$i; done > which cannot be parallelized unless you somehow propagate the -j into the > submake, which standard GNU make cannot do because it doesn't have a > central "how many jobs are currently running" counter. > > Adding such a thing is basically impossible, unfortunately, unless you want > to reimplement a /bin/sh parser inside Make. :-/ >
Urrm... man semop(2). It would appear SysV semaphores are all that you need to "correctly" implement parallel make over multiple directories (the semaphore counts the number of running jobs thereby maintaining the limit). Whether it's worth the effort is another matter.
t
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu
| |