5 ms·
The strengths of make, in this context where it's been coaxed into serving as a task runner for small projects, are: 1) It's already installed practically ever
by safety1st 2y ago
The strengths of make, in this context where it's been coaxed into serving as a task runner for small projects, are:
1) It's already installed practically everywhere
2) It reduces your cognitive load for all sorts of tasks down to just remembering one verb which you can reuse across multiple projects, even if the implementation ends up differing a bit
3) In conjunction with the similarly ubiquitous SSH and git, you have everything you need to apply the basic principles of DevOps automation and IaC
There's something special about waking up one day with an idea, and being able to create a fresh git repository where the first commit is the Makefile you've had in your back pocket for years that scripts everything from environment setup to deployment to test automation to code reviews.
There's zero effort beyond just copying your single file "cookbook" into that new repo.
- yunohn 2y ago> It's already installed practically everywhere This always comes up, and is a sad chicken/egg problem. We can all somehow agree that Make mostly sucks, but OS maintainers aren’t interested in providing a default alternative, due to choice overload or something.
- badgersnake 2y agoThis entire article and discussion is about why people like make.
- yunohn 2y agoNo, a significant amount of the comments here are about how Make sucks.
- hulitu 2y agoCMake runs make, ninja runs make.
- IshKebab 2y ago> It's already installed practically everywhere Well, except Windows. But nobody uses that right?
- oguz-ismail 2y agonmake comes with msvc
- wruza 2y agoYeah, “just install msvc”. It’s easier to install msys2 when you’re that desperate. At least the tool name will be “make” out of box.
- unscaled 2y ago1. MSVC is not installed by default on Windows. 2. nmake is with POSIX make, let alone GNU make. It doesn't even support .PHONY target, which is what you need to replace Just with make. 3. Installing Just with WinGet is simpler, faster and takes probably only 1% of the space of installing Visual Studio for nmake.
- overanalytcl 2y ago> 1. MSVC is not installed by default on Windows. Neither is Make or GCC on Unix.
- coolgoose 2y agoWsl2 :)
- maccard 2y agoNothing is installed out of the box on windows, but anyone with a functioning development environment for a large number of programming languages will have installed wsl, msys or git bash along the way and have make installed as part of it.
- bmacho 2y ago