[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: makefile rules
From: |
Jim Meyering |
Subject: |
Re: makefile rules |
Date: |
Tue, 21 Dec 2021 11:50:00 -0800 |
On Tue, Dec 21, 2021 at 11:41 AM Paul Eggert <eggert@cs.ucla.edu> wrote:
...
> If you run 'make' sometimes as one user and sometimes as another, you
> can have problems like that no matter what. We don't put 'rm -f $@' at
> the start of every other makefile recipe to work around those problems;
> why are these recipes special?
[I didn't look at any precise rule, but...]
One must delete $@ and the potential $@-t temporary file in any rule
that creates a generated file and marks it (as I prefer always to do) as
read-only by using chmod to subtract write permissions.
Otherwise, the attempt to redirect to $@-t (when it is read-only) will fail.
- problems in Emacs with GL_GENERATE_STDINT>H, Paul Eggert, 2021/12/16
- Re: problems in Emacs with GL_GENERATE_STDINT_H, Bruno Haible, 2021/12/18
- Re: problems in Emacs with GL_GENERATE_STDINT_H, Paul Eggert, 2021/12/18
- Re: problems in Emacs with GL_GENERATE_STDINT_H, Bruno Haible, 2021/12/19
- Re: problems in Emacs with GL_GENERATE_STDINT_H, Paul Eggert, 2021/12/19
- Re: MKDIR_P invocations, Bruno Haible, 2021/12/20
- Re: MKDIR_P invocations, Paul Eggert, 2021/12/20
- Re: MKDIR_P invocations, Bruno Haible, 2021/12/21
- Re: makefile rules, Bruno Haible, 2021/12/21
- Re: makefile rules, Paul Eggert, 2021/12/21
- Re: makefile rules,
Jim Meyering <=
- Re: makefile rules, Paul Eggert, 2021/12/21
- Re: makefile rules, Jim Meyering, 2021/12/21
- Re: makefile rules, Paul Eggert, 2021/12/21
- Re: makefile rules, Jim Meyering, 2021/12/22
- Re: makefile rules, Bruno Haible, 2021/12/21
- Re: makefile rules, Bruno Haible, 2021/12/21
- Re: makefile rules, Paul Eggert, 2021/12/22
- Re: makefile rules, Paul Eggert, 2021/12/23
- Re: makefile rules, Bruno Haible, 2021/12/24
- Re: makefile rules, Bruno Haible, 2021/12/24