From: Hugh Sasse Date: 2006-11-02T01:55:22+09:00 Subject: Re: parallel tasks with rake ? On Thu, 2 Nov 2006, quixoticsycophant@yahoo.com wrote: > > Wilson Bilkovich wrote: > > > > How does Make figure out which jobs can be run in parallel? In my > > experience, it just runs everything in parallel, and things break when > > the tasks aren't safely parallelizable. (e.g. doing make -j4 install > > on a FreeBSD port) > > The Make program figures it out from the dependency graph. > Unfortunately, the 'install' target you mention is a fake target which > depends on nothing. Such uses of 'install' are common but incorrect. > As a workaround, 'install' (and any other wrongly written targets) > should be treated as a special case and should not be run with -j. Would marking it as a .PHONY help? I see little advice in the GNU make manual about how to get this sort of thing right for parallel make. Where should one look for such info? Hugh