News for hackers. Stuff that matters.
Re:Learn Makefiles with the Tastiest Examples by rubicks on Monday May 15, 2023 @11:46PM (#35957538)
GNU Make is shockingly versatile and unreasonably effective. I have used Makefiles to build, check, and install projects in C, C++, golang, and python. I have abused Makefiles to generate websites, Docker images, PDFs (from LaTeX), and even macro-expanded yaml. It's old and weird and I love it.
Re:Learn Makefiles with the Tastiest Examples by nequo on Tuesday May 16, 2023 @12:53AM (#35957866)
> It's old and weird and I love it.

Likewise. And it has the added benefit of parallelizing those website and LaTeX builds according to the dependency graph by just adding “-j4” to the make call.

Re:Learn Makefiles with the Tastiest Examples by nephanth on Tuesday May 16, 2023 @01:37AM (#35958061)
What is there to parallelize in a latex build? Isn't it incremental?
Re:Learn Makefiles with the Tastiest Examples by porridgeandrice on Tuesday May 16, 2023 @02:43AM (#35958422)
I assume parallelizing latex builds of separate sections for their website. Like building out blogs/physics and blogs/cs from their latex equivalents in parallel.
Re:Learn Makefiles with the Tastiest Examples by nequo on Tuesday May 16, 2023 @07:49AM (#35960504)
Sometimes the LaTeX document contains many tables or figures that also need to be built. But those can be built in parallel.