bug-make
[
Top
][
All Lists
]
Advanced
[
Date Prev
][
Date Next
][
Thread Prev
][
Thread Next
][
Date Index
][
Thread Index
]
Double colon rules fail to run in parallel mode
From
:
grischka
Subject
:
Double colon rules fail to run in parallel mode
Date
:
Wed, 14 Mar 2007 04:32:51 +0100
The below makefile snippet works as supposed in single-job mode, however in parallel mode under certain timing circumstances although it makes the prerequisites for each of the rules, it then decides not to run the commands, for the most part.
all rev: xyz.lib
@echo - in $<:
@cat $<
@rm -f xyz.*
xyz.lib:: xyz.1.o
echo - $^ >> $@
xyz.lib:: xyz.2.o
echo - $^ >> $@
xyz.lib:: xyz.3.o
echo - $^ >> $@
xyz.%.o:
sleep $N
echo hi > $@
R1 = 3
R2 = 2
R3 = 1
all: N=$*
rev: N=$(R$*)
$ make -j3 rev
sleep 3
sleep 2
sleep 1
echo hi > xyz.3.o
echo hi > xyz.2.o
echo hi > xyz.1.o
echo - xyz.1.o >> xyz.lib
- in xyz.lib:
- xyz.1.o
reply via email to
[Prev in Thread]
Current Thread
[Next in Thread]
Double colon rules fail to run in parallel mode
,
grischka
<=
Prev by Date:
[bug #19309] parallel make issue with archive members
Next by Date:
Ping Re: @file response file support for make
Previous by thread:
[bug #19309] parallel make issue with archive members
Next by thread:
Ping Re: @file response file support for make
Index(es):
Date
Thread