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

2021-12-31 Thread Mattias Andrée
I just started implementing a linter[0]. Even though I just started it today, I think that's enough for this year. Happy New Year! Mattias Andrée [0] https://github.com/maandree/makelint/ On Thu, 30 Dec 2021 21:17:32 +0100 Mattias Andrée wrote: > On Thu, 30 Dec 2021 21:07:06 +0100 > Laslo Hun

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

2021-12-31 Thread Michael Forney
On 2021-12-30, NRK wrote: > Hmm, I was under the impression that `?=` was accepted into POSIX. But I > cannot find any mention of it in the posix manpage (man 1p make) so I > guess I was wrong. It is accepted for the upcoming POSIX issue 8: https://austingroupbugs.net/view.php?id=330

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

2021-12-31 Thread Mattias Andrée
On Fri, 31 Dec 2021 12:53:59 +0100 crae...@gmail.com wrote: > > 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 beha

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

2021-12-31 Thread craekz7
> 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. Something like shellcheck would be awesome! Given that the POSI

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

2021-12-31 Thread Hiltjo Posthuma
On Fri, Dec 31, 2021 at 11:33:21AM +0100, Laslo Hunhold wrote: > On Fri, 31 Dec 2021 11:16:18 +0100 > Hiltjo Posthuma wrote: > > Dear Hiltjo, > > > In my opinion a practical way is to really test it on different > > systems (bleeding edge Linux, older Debian stable, NetBSD, OpenBSD) > > and GNU/

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

2021-12-31 Thread Laslo Hunhold
On Fri, 31 Dec 2021 11:16:18 +0100 Hiltjo Posthuma wrote: Dear Hiltjo, > 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 compatibil

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

2021-12-31 Thread Laslo Hunhold
On Fri, 31 Dec 2021 01:52:42 -0800 Arthur Williams wrote: Dear Arthur, > I too fell victim to the GNU trap and thought "?=" was standard and > actually useful. hehe this thread here feels like a self-help-thread of the newly POSIX-make-awakened! > Completely forgot about the -e flag. Now I nee

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

2021-12-31 Thread Hiltjo Posthuma
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 >

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

2021-12-31 Thread Arthur Williams
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

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

2021-12-31 Thread Laslo Hunhold
On Fri, 31 Dec 2021 12:49:46 +0600 NRK wrote: Dear NRK, > Hmm, I was under the impression that `?=` was accepted into POSIX. > But I cannot find any mention of it in the posix manpage (man 1p > make) so I guess I was wrong. > > What would be a posix replacement for `?=` ? I assume something lik