help-make
[Top][All Lists]
Advanced

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

Re: Trigger missing dependencies by changing order of execution?


From: Olaf Hering
Subject: Re: Trigger missing dependencies by changing order of execution?
Date: Tue, 28 Feb 2012 16:46:06 +0100
User-agent: Mutt/1.5.21.rev5543 (2011-12-20)

On Tue, Feb 28, Tim Landscheidt wrote:

> Hi,
> 
> suppose I have a Makefile:
> 
> | 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
> 
> "make c.out" will /usually/ succeed, as the commands for
> a.out are executed before the commands for b.out.  But "make
> b.out" will fail (in a clean directory), as will "make -j
> c.out".

How will make b.out fail? Because a1 is not present?
The example above has no rule to make a1.

Olaf



reply via email to

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