[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Trigger missing dependencies by changing order of execution?
From: |
Mason |
Subject: |
Re: Trigger missing dependencies by changing order of execution? |
Date: |
Tue, 28 Feb 2012 16:51:53 +0100 |
User-agent: |
Mozilla/5.0 (Windows NT 5.1; rv:10.0.2) Gecko/20120216 Firefox/10.0.2 SeaMonkey/2.7.2 |
Tim Landscheidt wrote:
> | a.out:
> | sleep 3
> | touch a.out a1
> |
> | b.out:
> | cat a1 > b.out
> |
> | c.out: a.out b.out
> | cat a.out b.out > c.out
It seems you're lying to the system.
(And, as always, this means it WILL get its revenge.)
The first recipe doesn't just create a.out, it also creates a1.
The second recipe depends on a1.
a.out a1:
sleep 3
touch a.out a1
b.out: a1
cat a1 > b.out
c.out: a.out b.out
cat a.out b.out > c.out
Or am I missing something?
--
Regards.