deadpixi / mtm

Perhaps the smallest useful terminal multiplexer in the world.
1.12k stars 53 forks source link

Use .POSIX as first line in makefile #68

Closed equwal closed 2 years ago

equwal commented 2 years ago

I noticed that a lot of issues/pulls are related to the makefile portability. The .POSIX: line tells make to follow the posix standard and is recommended.

Here is the POSIX standard for make: https://pubs.opengroup.org/onlinepubs/9699919799/utilities/make.html

And a quote:

To receive exactly the behavior described in this section, the user shall ensure that a portable makefile shall:

    Include the special target .POSIX

    Omit any special target reserved for implementations (a leading period followed by uppercase letters) that has not been specified by this section

The behavior of make is unspecified if either or both of these conditions are not met.

To do it you put only .POSIX: on the first line of the make file.

equwal commented 2 years ago

ok I did a pull https://github.com/deadpixi/mtm/pull/69