bug-make
[Top][All Lists]
Advanced

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

Re: disabling the built-in rules


From: Bruno Haible
Subject: Re: disabling the built-in rules
Date: Mon, 17 Jul 2023 19:31:09 +0200

Paul Smith wrote:
> Or, to test:
> 
>   all:
> 
>   .SUFFIXES:
>   %:: %,v
>   %:: RCS/%,v
>   %:: RCS/%
>   %:: s.%
>   %:: SCCS/s.%

Indeed, this works fine with the 'make' on FreeBSD, NetBSD, OpenBSD,
Solaris 10, and AIX.

> If we were to add something it would be a pseudo-target like:
> 
>   .NOBUILTINS:
> 
> or something like that that would just turn off the entire built-in
> database.

Looks fine.

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:

Bruno






reply via email to

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