On 3/31/2010 9:59 AM, David Boyce wrote:
On Wed, Mar 31, 2010 at 11:37 AM, John Calcote<address@hidden>
wrote:
How about this:
all: c1 c2 c3
c1:
cmd1
c2:
-cmd2
c3:
cmd3
This would work but would also require:
.PHONY: c1 c2 c3
.NOTPARALLEL:
and is generally less useful than the previous solution. The ordering
is also unlear to a non-make-expert.
Something else that occurred to me after I hit "send" is that parallel make
would have a problem with my suggestion too. When not using -j the order is
as specified in the list of dependencies, but with -j, dependencies that are
not related to each other are considered parallelizable.