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

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

2021-12-30 Thread craekz7
>I agree that it shall be added to all Makefile, because >otherwise the behavior of make is unspecified. >(Quote from the POSIX specifications) I'm sure you meant it like that, but just to clarify it: It is only unspecified if it doesn't appear as the first non-comment line, has prerequisites or

[dev] Special target ".POSIX" in Makefiles

2021-12-30 Thread craekz7
Hi, I'm wondering why the Makefiles of some suckless programs (and libs) have the special target `.POSIX` in them and some don't. For example, dwm doesn't have it in it's Makefile but there isn't a single non-POSIX feature used. I think it would be better to include the `.POSIX` target simply to