[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: |
Paul Smith |
Subject: |
Re: Trigger missing dependencies by changing order of execution? |
Date: |
Tue, 28 Feb 2012 11:33:51 -0500 |
On Tue, 2012-02-28 at 16:51 +0100, Mason wrote:
> a.out a1:
> sleep 3
> touch a.out a1
This doesn't do that. Explicit rules with multiple targets are
shorthand for writing the same rule multiple times; e.g. the above is
interpreted by make as if you'd written:
a.out:
sleep 3
touch a.out a1
a1:
sleep 3
touch a.out a1
Only pattern rules are capable of expressing the idea that multiple
targets are created with a single invocation of the rule.
To do it with explicit rules you have to resort to sentinel files of
some kind.
--
-------------------------------------------------------------------------------
Paul D. Smith <address@hidden> Find some GNU make tips at:
http://www.gnu.org http://make.mad-scientist.net
"Please remain calm...I may be mad, but I am a professional." --Mad Scientist