[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: updating target at the end of recipe, after updating prerequisites,
From: |
Paul Smith |
Subject: |
Re: updating target at the end of recipe, after updating prerequisites, might not work? |
Date: |
Mon, 14 Nov 2011 11:38:10 -0500 |
On Mon, 2011-11-14 at 11:29 -0500, David Boyce wrote:
> On Mon, Nov 14, 2011 at 9:25 AM, Paul Smith <address@hidden> wrote:
> > Also, writing 0 bytes to a file does not (at least in my
> > experiment) change its modtime.
>
> I believe it depends on O_TRUNC. The command ">foo" always updates foo
> but ">>foo" does not.
Sure but that also truncates the file. It could very well be that you
don't want the file you're touching to lose all its content :-).
For typical make sentinel files, which are often only created so they
exist and have 0 length anyway that's fine. But touch is a generic
utility.
--
-------------------------------------------------------------------------------
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
- RE: updating target at the end of recipe, after updating prerequisites, might not work?, (continued)
- RE: updating target at the end of recipe, after updating prerequisites, might not work?, Mark Galeck (CW), 2011/11/13
- RE: updating target at the end of recipe, after updating prerequisites, might not work?, Paul Smith, 2011/11/14
- RE: updating target at the end of recipe, after updating prerequisites, might not work?, Mark Galeck (CW), 2011/11/14
- RE: updating target at the end of recipe, after updating prerequisites, might not work?, Paul Smith, 2011/11/14
- Re: updating target at the end of recipe, after updating prerequisites, might not work?, Eli Zaretskii, 2011/11/14
- RE: updating target at the end of recipe, after updating prerequisites, might not work?, Mark Galeck (CW), 2011/11/14
- Re: updating target at the end of recipe, after updating prerequisites, might not work?, David Boyce, 2011/11/14
- Re: updating target at the end of recipe, after updating prerequisites, might not work?, Eli Zaretskii, 2011/11/14
- Re: updating target at the end of recipe, after updating prerequisites, might not work?, Paul Smith, 2011/11/14
- Re: updating target at the end of recipe, after updating prerequisites, might not work?, David Boyce, 2011/11/14
- Re: updating target at the end of recipe, after updating prerequisites, might not work?,
Paul Smith <=
why would chaining built in implicit rules not work?, Mark Galeck (CW), 2011/11/13