On 3/31/2010 11:05 AM, David Boyce wrote:
On Wed, Mar 31, 2010 at 12:36 PM, John Calcote<[email protected]>  wrote:
On 3/31/2010 9:59 AM, David Boyce wrote:
On Wed, Mar 31, 2010 at 11:37 AM, John Calcote<[email protected]>
  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.
Yes, that's where the .NOTPARALLEL comes in.

I know - I missed that also until right after I hit "send". :) Sorry.


_______________________________________________
Help-make mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/help-make

Reply via email to