bug-make
[Top][All Lists]
Advanced

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

Re: document -j


From: Paul D. Smith
Subject: Re: document -j
Date: Sat, 28 Aug 2004 14:40:13 -0400

%% Dan Jacobson <address@hidden> writes:

  dj>    Parallel Execution
  dj>    GNU `make' knows how to execute several commands at once.  Normally,
  dj>    `make' will execute only one command at a time, waiting for it to
  dj>    finish before executing the next.  However, the `-j' or
  dj>    `--jobs' option tells `make' to execute many commands simultaneously.

  dj> Well, without examples in the manual, we are left to guess and
  dj> experiment.

The manual is not using the correct terminology here, you're right.  It
should read like this:

   GNU `make' knows how to build several targets at once.  Normally,
   `make' will build only one target at a time, waiting for it to
   finish before building the next.  However, the `-j' or
   `--jobs' option tells `make' to build many targets simultaneously.

  dj> Maybe mention that this shows equivalence with sleep tests:
  dj> $ f=$SECONDS;make -j x y;expr $SECONDS - $f
  dj> $ f=$SECONDS;make x& make y& wait;expr $SECONDS - $f
  dj> But wait, that is only if x and y don't have any dependencies.

I fail to see how this is in any way enlightening.

-- 
-------------------------------------------------------------------------------
 Paul D. Smith <address@hidden>          Find some GNU make tips at:
 http://www.gnu.org                      http://make.paulandlesley.org
 "Please remain calm...I may be mad, but I am a professional." --Mad Scientist




reply via email to

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