• setsubyou
    link
    fedilink
    arrow-up
    13
    ·
    7 hours ago

    Plain makefiles are horrible if you need to support multiple different platforms that all have their own quirks and build differences.

    And also different implementations of make. The author lumps Unix, Linux and BSD together because you’d be likely to have make available on all of them, but neglects to mention that that could easily be three or more different dialects. If you create your Makefiles on Linux you are not at all unlikely to use GNU-specific features (because they’re handy) that won’t work on BSD. Or even features of GNU make 4 that still won’t work on older versions, e.g. what ships by default on Macs.

    The way the author speaks about Windows in this context suggests they also don’t realize that Windows has nmake (of course also not really compatible with GNU).

    It’s not a coincidence that even when it’s mostly Linux, people use autotools on top, and if it’s more platforms than that handles well, it’s often a set of setup scripts. Or that projects migrated to tools like Cmake, which is one of the worst scripting language designs I have seen in 30 years of professional software development, but makes it much less painful to support multiple platforms with a single build system. Including ones specific to Windows or macOS and so on, but also ninja on Linux that is much faster at incremental builds than make.