bug-make
[Top][All Lists]
Advanced

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

[bug #13862] .WAIT target for parallel builds


From: Nikolay Molchanov
Subject: [bug #13862] .WAIT target for parallel builds
Date: Sun, 2 Apr 2006 06:52:36 +0000
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.1) Gecko/20060111 Firefox/1.5.0.1

Follow-up Comment #2, bug #13862 (project make):

I think the example in the description is not quite correct.
Usually .WAIT target is used to separate targets, that do not
depend one on another in sense of build process, but they should 
not be built in parallel. For example, a nightly build process may include
"building" and "testing":

nightly_build: install .WAIT test

install: all
...

test:
...

In this case it is not desired to set the dependency (test: install), because
it will not allow to rerun tests without
rebuilding. Also it does not make sense to do both targets in
parallel. If we use Sun Studio dmake, we usually add a .WAIT target between
"install" and "test", or add the dependency:
.NO_PARALLEL: install test

I think the second way is better, and it is already supported
in GNU make (though it has different syntax). But it would be
great if GNU make will also support .WAIT, because in some 
cases .WAIT is a simpler solution. For example, if there are 
several sets of targets, and we don't want to build them 
in parallel, we usually use .WAIT to separate them:

SET1=t11 t12 t13 t14 t15 
SET2=t21 t22 t23 t24 t25
SET3=t31 t32 t33 t34 t35

all: ${SET1} .WAIT ${SET2} .WAIT ${SET3}

In this case it is a tricky task to use .NO_PARALLEL: to 
separate the sets of targets.



    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?func=detailitem&item_id=13862>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/





reply via email to

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