[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Why rules depends on the same target behave differently if the comm
From: |
Peng Yu |
Subject: |
Re: Why rules depends on the same target behave differently if the commands are different? |
Date: |
Mon, 26 Apr 2010 09:51:57 -0500 |
On Mon, Apr 26, 2010 at 6:40 AM, Paul Smith <address@hidden> wrote:
> On Sun, 2010-04-25 at 15:13 -0500, Peng Yu wrote:
>
>> /tmp/double_targets_same_command$ make
>> a
>> echo 'a' > a; sleep 1; echo 'b' > b
>
> Here one command (the one for building "a") also builds "b", so when
> make goes to see if "b" is out of date or not, it finds that "b" is
> up-to-date (it was just built) and so there's nothing to be done for
> "b", and make stops.
I see if I use '-j2' option both command will be executed.
Is there is a way to parallelly run some rules but serially run others rules?
> --
> -------------------------------------------------------------------------------
> Paul D. Smith <address@hidden> Find some GNU make tips at:
> http://www.gnu.org http://make.mad-scientist.net
> "Please remain calm...I may be mad, but I am a professional." --Mad Scientist
>
>
--
Regards,
Peng