Is there a known way to make Linux's
make
reject unintended use of GNU‑Make specific extensions in Makefile when editing or using other's Makefile in Linux? I mean, restricting GNU‑Make to behave as the [make
specified in POSIX](http://pubs.opengroup.org/onlinepubs/009695399/utilities/make.html) and reject any GNU‑Make specific extensions?
The .POSIX
special target is not enough, according to “[4.9 Special Built-in Target Names (gnu.org)](https://www.gnu.org/software/make/manual/html_node/Special-Targets.html)” . The man page does not mention a command line option for this.
Using another make
utility may be an option.
— **Update 2018-10-19** —
I still have not found a direct answer to my question, but here is at least a document about this issue, a document which did not exist at the time I had this question: [A Tutorial on Portable Makefiles (nullprogram.com)](https://nullprogram.com/blog/2017/08/20/#may-your-makefiles-be-portable) .
Asked by Hibou57
(955 rep)
Jul 14, 2014, 08:35 AM
Last activity: Aug 12, 2024, 04:19 PM
Last activity: Aug 12, 2024, 04:19 PM