[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug #27714] expansion of $(shell) in target forces serialization of tar
From: |
Paul D. Smith |
Subject: |
[bug #27714] expansion of $(shell) in target forces serialization of targets |
Date: |
Fri, 16 Oct 2009 07:58:28 +0000 |
User-agent: |
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.14) Gecko/2009090216 Ubuntu/8.04 (hardy) Firefox/3.0.14 |
Follow-up Comment #1, bug #27714 (project make):
My suspicion is that this is just an artifact of your test case. In your
scenario, make must evaluate the $(shell ...) function (invoking the shell)
while it's expanding the command to be invoked. What I think is happening
here is that your actual command is so fast that by the time make is ready to
invoke the next command (after it ran the $(shell :) for that target), the
previous command is already completed. So, it looks like things are happening
serially even though make is doing its best to run them in parallel.
Please try this test again, but have the command you invoke take longer; for
example add a "sleep 1" or something after your printf (not inside the $(shell
...) function!), then print it again maybe. You should see all the first
prints show up (running in parallel) then all the second prints.
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?27714>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- [bug #27714] expansion of $(shell) in target forces serialization of targets, Mike Frysinger, 2009/10/16
- [bug #27714] expansion of $(shell) in target forces serialization of targets,
Paul D. Smith <=
- [bug #27714] expansion of $(shell) in target forces serialization of targets, Mike Frysinger, 2009/10/16
- [bug #27714] expansion of $(shell) in target forces serialization of targets, Paul D. Smith, 2009/10/16
- Re: [bug #27714] expansion of $(shell) in target forces serialization of targets, Philip Guenther, 2009/10/16
- [bug #27714] expansion of $(shell) in target forces serialization of targets, Mike Frysinger, 2009/10/18
- [bug #27714] expansion of $(shell) in target forces serialization of targets, Paul D. Smith, 2009/10/19
- [bug #27714] expansion of $(shell) in target forces serialization of targets, Mike Frysinger, 2009/10/19
- [bug #27714] expansion of $(shell) in target forces serialization of targets, Paul D. Smith, 2009/10/19