help-make
[Top][All Lists]
Advanced

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

RE: command line ordering within a single rule when parallel building


From: Dave Korn
Subject: RE: command line ordering within a single rule when parallel building
Date: Tue, 1 Jul 2008 10:52:59 +0100

address@hidden wrote on 01 July 2008 10:41:

> Hi,
> 
> I have a basic question about command line execution when using -jN to
> build a target. How are the command lines of a single make rule scheduled
> for execution when running parallel builds?

  Sequentially.  Separate /rules/ are built in parallel.  Example:

/artimi/software/firmware/target $ cat mf-j

.PHONY: all a b c

all: a b c

a:
        echo a1
        sleep 5
        echo a2
        sleep 5
        echo a3

b:
        echo b1
        sleep 5
        echo b2
        sleep 5
        echo b3

c:
        echo c1
        sleep 5
        echo c2
        sleep 5
        echo c3

/artimi/software/firmware/target $ make -f mf-j -j12
echo a1
echo b1
a1
echo c1
b1
sleep 5
c1
sleep 5
sleep 5
         [ long pause ]
echo a2
a2
sleep 5
echo b2
b2
sleep 5
echo c2
c2
sleep 5
         [ long pause ]
echo a3
a3
echo b3
b3
echo c3
c3

    cheers,
      DaveK
-- 
Can't think of a witty .sigline today....





reply via email to

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