bug-make
[Top][All Lists]
Advanced

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

[bug #27714] expansion of $(shell) in target forces serialization of tar


From: Mike Frysinger
Subject: [bug #27714] expansion of $(shell) in target forces serialization of targets
Date: Fri, 16 Oct 2009 08:13:12 +0000
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.3) Gecko/20090824 Firefox/3.5.3

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

i didnt think it a race condition because the original test case had a fairly
lengthy $(shell) code and the targets always ran in the same order (and
obviously only one cpu at a time -- the other cpus stayed idle)

using sleep shows that it is indeed a make bug.  i see one target show up
every 10 seconds:
$ cat makefile
t = 0 a b c 1 d e f 2 g h i 3 j k l 4 m n o 5 p q r 6
all: $(t) ; @echo
$(t): ; @printf $@ $(shell sleep 10)

$ make -f makefile
<10 seconds>0<10 seconds>a<10 seconds>b............

    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?27714>

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





reply via email to

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