[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: disabling the built-in rules
From: |
Alejandro Colomar |
Subject: |
Re: disabling the built-in rules |
Date: |
Mon, 17 Jul 2023 20:41:20 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.12.0 |
Hi Paul,
On 2023-07-17 20:35, Paul Smith wrote:
> On Mon, 2023-07-17 at 19:31 +0200, Bruno Haible wrote:
>> Except possibly that POSIX does not allow this? Then we would need a
>> pseudo-target the turns off only the non-standardized part of the
>> built-in database, say, .NO_GNU_BUILTINS. And users would have to
>> write:
>>
>> .SUFFIXES:
>> .NO_GNU_BUILTINS:
>
> I'm not sure what you mean by "POSIX does not allow this". But, POSIX
> reserves all targets prefixed with "." (that are not already specified
> in the standard) to the implementation. So it's fine with POSIX to add
> a pseudo target like .NOBUILTINS; no conforming makefile can use that
> target for anything else.
>
If you fell like implementing .NOBUILTINS:, maybe it's interesting to
have a way to control builtin variables too:
.NOBUILTINRULES:
.NOBUILTINVARS:
I'd like that.
BTW, could you point out the problems with the following?
MAKEFLAGS += --no-builtin-rules
MAKEFLAGS += --no-builtin-variables
MAKEFLAGS += --warn-undefined-variables
This is what I currently use, and never had a big issue with it. I
don't care too much about old versions of GNU Make (although it might
be a good idea to document in this thread what can go wrong with them
too). Is there any issue remaining with 4.4.1?
Cheers,
Alex
- Re: MAKEFLAGS=-r, (continued)
- Re: MAKEFLAGS=-r, Dmitry Goncharov, 2023/07/18
- Re: MAKEFLAGS=-r, Paul Smith, 2023/07/17
- Re: disabling the built-in rules, Bruno Haible, 2023/07/17
- Re: disabling the built-in rules, Paul Smith, 2023/07/17
- Re: disabling the built-in rules, Bruno Haible, 2023/07/17
- Re: disabling the built-in rules, Paul Smith, 2023/07/17
- Re: disabling the built-in rules,
Alejandro Colomar <=
- Re: disabling the built-in rules, Paul Smith, 2023/07/17
- Re: disabling the built-in rules, Dmitry Goncharov, 2023/07/18
- Re: disabling the built-in rules, Alejandro Colomar, 2023/07/19
- Re: disabling the built-in rules, Bruno Haible, 2023/07/17
- Re: MAKEFLAGS=-r, Jeffrey Walton, 2023/07/19
- Re: MAKEFLAGS=-r, Dmitry Goncharov, 2023/07/19
- Re: MAKEFLAGS=-r, Paul Smith, 2023/07/20
- Re: MAKEFLAGS=-r, Dmitry Goncharov, 2023/07/18
- Re: MAKEFLAGS=-r, Bruno Haible, 2023/07/19
- Re: MAKEFLAGS=-r, Dmitry Goncharov, 2023/07/18