News for hackers. Stuff that matters.
Re:I Like Makefiles by jart on Saturday September 21, 2024 @08:11AM (#41609459)
My Makefile is portable. It builds binaries that run on six OSes and two architectures. So I used my Makefile to build GNU Make and a GCC toolchain. Now I can run my Makefile on any of those OSes / architectures too, and it'll produce the same deterministic output, bit for bit.
Re:I Like Makefiles by whartung on Saturday September 21, 2024 @09:36AM (#41609875)
If part of your build is building your own build tool in order to ensure you have the proper build tool then why not build a different “better” build tool?

Part of the premise of Make is its ubiquity, but if you can’t rely on that save as a simple bootstrap (as you seem to be doing) then why not forego it for something else?

Re:I Like Makefiles by chipdart on Saturday September 21, 2024 @11:24AM (#41610578)
> (..) then why not forego it for something else?

Because blindly ditching a technology for no reason at all is not a way to fix problems.

Re:I Like Makefiles by marci on Saturday September 21, 2024 @10:25AM (#41610191)
Are you suggesting this: https://xkcd.com/927/ ?
Re:I Like Makefiles by jart on Saturday September 21, 2024 @05:32PM (#41612801)
My project is literally to make a compiler toolchain. Do you expect me to not use it? The nice thing is that you can build my project on any computer that has modern GNU Make. That and sh are the only things that needs to be installed.
Re:I Like Makefiles by ReleaseCandidat on Saturday September 21, 2024 @01:40PM (#41611437)
> My Makefile is portable.

Oh yes, in the good old tradition of "... as long as it's some Linux on x86".

    [...] on Linux 2.6+ (or WSL) using GNU Make. 
Sorry, it's actually AMD64 _and_ ARM64!
Re:I Like Makefiles by consteval on Wednesday September 25, 2024 @12:47PM (#41649306)
People use Windows toolchains and nobody cares. Those are significantly less portable. But here I am, building with Visual Studio.