News for hackers. Stuff that matters.
Re:Using Makefile(s) for Go by Sean1708 on Tuesday December 10, 2019 @09:39AM (#21752813)
None of those reasons explain why a Makefile is any better than a scripting language.
Re:Using Makefile(s) for Go by coldtea on Tuesday December 10, 2019 @11:42AM (#21754067)
Here's 3 reasons:

- Makefiles are a de-facto standard. People know them and those who don't can read how they work in 2000 tutorials. They shouldn't have to read your (and everybody's) custom (and different) script to build a project they've downloaded.

- Makefiles are specialised to the tasks of building, running tests, etc. A scripting language is general purpose. As such, it encourages adding all kinds of crap, from overcomplicated steps, to security issues.

- Makefile just needs make which is part of the core set for any distro and works fine on Mac and Windows (WSL or elsewhere) as well. Users shouldn't have to install a scripting language (or even a specific version of one) just to build a project.

Re:Using Makefile(s) for Go by erik_seaberg on Tuesday December 10, 2019 @01:23PM (#21755180)
Make is better than de facto; POSIX specifies it.
Re:Using Makefile(s) for Go by rat9988 on Tuesday December 10, 2019 @10:06AM (#21753106)
Thank you. I had to reread the comment two times to make sure I didn't miss something. Glad to see I'm not the only one.