Re: [dev] Special target ".POSIX" in Makefiles

From: Arthur Williams <taaparthur_AT_disroot.org>
Date: Fri, 31 Dec 2021 01:52:42 -0800

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.

> 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.
Received on Fri Dec 31 2021 - 10:52:42 CET

This archive was generated by hypermail 2.3.0 : Fri Dec 31 2021 - 11:00:07 CET