Do not use on any
shared computer
August 29, 2008 06:59pm pdt
 
[x]
Attachment Details

multiple-target make rules and parallel make

Tags: make
If a gmake rule has multiple targets, all written by a single command, and I invoke gmake with the -j option to do a parallel make, will gmake know not to start multiple copies of the command?  Because each copy will write ALL the targets, and will clobber each other.   The gmake manual seems to say that a multiple-target rule is the same as having several single-target rules with the same dependencies... which lets gmake try to make each target in parallel.  Is there a good way to prevent that?

Thanks!

Start your free trial to view this solution
Question Stats
Zone: Programming
Question Asked By: ilya239
Question Asked On: 01.11.2008
Participating Experts: 3
Points: 500
Views: 0
Translate:
Loading Advertisement...
 
[+][-]Expert Comment by sentner
Expert Comment by sentner:

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
 
[+][-]Author Comment by ilya239
Author Comment by ilya239:

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
 
[+][-]Expert Comment by ahoffmann
Expert Comment by ahoffmann:

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
 
[+][-]Author Comment by ilya239
Author Comment by ilya239:

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
 
[+][-]Expert Comment by ahoffmann
Expert Comment by ahoffmann:

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
 
[+][-]Author Comment by ilya239
Author Comment by ilya239:

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
 
[+][-]Expert Comment by ahoffmann
Expert Comment by ahoffmann:

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
 
[+][-]Expert Comment by Expertize
Expert Comment by Expertize:

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
 
Loading Advertisement...
20080723-EE-VQP-34 / EE_QW_2_20070628