[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: What is the difference between > and >> in a makefile.
From: |
Stephan Beal |
Subject: |
Re: What is the difference between > and >> in a makefile. |
Date: |
Mon, 28 Mar 2011 21:43:17 +0200 |
On Mon, Mar 28, 2011 at 9:37 PM, Paul Smith <address@hidden> 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/
Re: What is the difference between > and >> in a makefile., givemecode, 2011/03/28