[Top][All Lists]

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

Re: Make question

From: Eric Melski
Subject: Re: Make question
Date: Fri, 5 Feb 2010 08:40:09 -0800
User-agent: Thunderbird (X11/20090817)

Canham, Timothy K (316C) wrote:
We have code generation, and we have  a rule like this:

fileout1.txt fileout2.txt fileout3.txt: filein.txt filein.txt

We run a parallel make (make -j x), and what I've found is that the rule often gets invoked three times, causes files to overwrite each other.  


Is there a way to specify the rule so that the rule is only invoked once in a parallel make, or is there a technique that accomplishes the same thing?

Have a look at my article "Rules with Multiple Outputs in GNU Make" at CM Crossroads:
That covers the various techniques for solving this problem and the pros and cons of each.


Eric Melski
Electric Cloud, Inc.

reply via email to

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