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 <psm...@gnu.org>          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


_______________________________________________
Help-make mailing list
Help-make@gnu.org
https://lists.gnu.org/mailman/listinfo/help-make

Reply via email to