help-make
[Top][All Lists]
Advanced

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

Re: ignore errors on specific command


From: John Calcote
Subject: Re: ignore errors on specific command
Date: Wed, 31 Mar 2010 11:50:01 -0600
User-agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.1.9) Gecko/20100317 Thunderbird/3.0.4

On 3/31/2010 11:05 AM, David Boyce wrote:
On Wed, Mar 31, 2010 at 12:36 PM, John Calcote<address@hidden>  wrote:
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.
Yes, that's where the .NOTPARALLEL comes in.

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




reply via email to

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