On Mon, Mar 28, 2011 at 9:37 PM, Paul Smith <[email protected]> wrote:

>     1. If the file $@ exists before the command is invoked, then the
>        first version will append the new content to the
>        already-existing content... this is probably not what you want
>        in this situation.  The second version will always recreate the
>        file from scratch.
>

You can also use scopes to redirect multiple commands while only opening the
output file a single time:

xyz:
    { \
       echo foo; \
       echo bar; \
       ...; \
    } > $@


-- 
----- stephan beal
http://wanderinghorse.net/home/stephan/
_______________________________________________
Help-make mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/help-make

Reply via email to