[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Inconsistent behaviour when building in parallel
From: |
Dirk Heinrichs |
Subject: |
Inconsistent behaviour when building in parallel |
Date: |
Fri, 19 Jan 2007 20:01:25 +0100 |
User-agent: |
KMail/1.9.5 |
Hello,
I'm using GNU make 3.81 (on Linux, if this is important) and see strange
behaviour in parallel builds with the following Makefile:
file1.txt file2.txt: file.in
cat $< >file1.txt|tee file2.txt
test: file1.txt file2.txt
cat $^ >$@
In a normal build, make does the right thing:
% make test
cat file.in >file1.txt|tee file2.txt
cat file1.txt file2.txt >test
In case of a parallel build, the "cat ... | tee ..." command for file[12].txt
is executed twice, which should not happen:
% make -j 2 test
cat file.in >file1.txt|tee file2.txt
cat file.in >file1.txt|tee file2.txt
cat file1.txt file2.txt >test
Bye...
Dirk
pgpYnn7CdzFRB.pgp
Description: PGP signature
- Inconsistent behaviour when building in parallel,
Dirk Heinrichs <=