help-make
[Top][All Lists]
Advanced

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

Re: single-threading targets although make was invoked with -jX ?


From: Per Jessen
Subject: Re: single-threading targets although make was invoked with -jX ?
Date: Wed, 04 May 2011 11:11:20 +0200
User-agent: KNode/0.10.4

Per Jessen wrote:

> I've got numerous makefiles that are all run with -jX depending on the
> available hardware etc.  Occasionally I have the need to single-thread
> the making of one type of target - I know I can achieve this
> with .NOTPARALLEL, but because that applies to an entire Makefile, I
> was wondering if there was a simpler way?  Maybe a flag for a rule
> that indicates "only one at a time" or some such?

Okay, let me rephrase that - when you're otherwise running everything in
parallel, how do you force some targets to be single-threaded, i.e.
never run concurrently?  I tend to use a lock-construct, but it's not
exactly optimal.


/Per Jessen, Zürich




reply via email to

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