help-make
[Top][All Lists]
Advanced

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

Re: redirection


From: Paul D. Smith
Subject: Re: redirection
Date: Mon, 11 Nov 2002 13:49:44 -0500

> $(FILES):
>          @$(PYTHON) $@ 2>> err
>
> But it seems the file is appended to the old file. How
> to get a fresh new file for each make? Thanks.

Add something like this to your makefile:

  $(shell rm -f err)

-- 
-------------------------------------------------------------------------------
 Paul D. Smith <address@hidden>          Find some GNU make tips at:
 http://www.gnu.org                      http://make.paulandlesley.org
 "Please remain calm...I may be mad, but I am a professional." --Mad Scientist




reply via email to

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