3 ms·
> Do we still need makefiles :(? Yes, because > What’s the alternative? There are endless alternatives - none of which are even remotely as ubiquitous, most
by yjftsjthsd-h 4y ago
> Do we still need makefiles :(?
Yes, because
> What’s the alternative?
There are endless alternatives - none of which are even remotely as ubiquitous, most of which are more complex, less portable, make aggressive tradeoffs, aren't as flexible, etc. Make is everywhere and provides a decent baseline.
- shepherdjerred 4y ago> less portable Makefiles being portable is an illusion. Make itself has multiple flavors. Running standard POSIX utilities like `find` or `sed` will have different outputs depending on if you're on macOS, or regular Linux. There are so many implicit dependencies that aren't codified. It's true that Makefiles are often portable. I'm always very happy when a GitHub repo has a Makefile and I can do something like `make install` to have a binary on my system. This is because my system happens to have the required compilers and libraries, but there have also been plenty of times where I needed to install something without it being clear.