On Fri, Dec 31, 2021 at 01:52:42AM -0800, Arthur Williams wrote:
> I too fell victim to the GNU trap and thought "?=" was standard and
> actually useful.
>
> > and want to "dynamically" override it (e.g. in a build system context)
> > when the environment already specifies PREFIX, you either do
> >
> > make -e
>
> Completely forgot about the -e flag. Now I need to go update all my
> projects and who knows what other GNU-isms I'm unknowingly using.
>
Hi,
In my opinion a practical way is to really test it on different systems
(bleeding edge Linux, older Debian stable, NetBSD, OpenBSD) and GNU/Make,
different BSD make programs.
This doesn't cover the POSIX compatibility, but some make implementations are
not fully POSIX either and this also finds other issues.
> > that is exactly what I meant earlier on that the POSIX-intended good
> > practices get destroyed by the retarded GNU extensions.
>
> Yeah you make a strong argument. I too think a linting tool would be
> useful. I imagine it would function like shellcheck does for shells. If
> nothing else it would really help people identify GNU extensions vs
> portable behavior.
>
--
Kind regards / Happy new year,
Hiltjo
Received on Fri Dec 31 2021 - 11:16:18 CET