News for hackers. Stuff that matters.
Re:Make your own build system by jstimpfle on Thursday March 08, 2018 @07:29AM (#16543922)
It's very easy to explain and there are many examples of bad Makefiles on the internet. Magic variables, unintelligible string replacement routines, unportable extensions. Almost nobody understands the finer points like = vs := and execution order. Using a simple scripting language with well known semantics can be relieving. Maybe try this? http://nibblestew.blogspot.de/2017/12/a-simple-makefile-is-u...

Creating dummy files is inefficient, inelegant, and unmaintainable. Changing SHELL does not solve the inconvenience of having start a new process and having to go through a command-line interface each time.

Btw. watch your language, please.

Re:Make your own build system by nrclark on Thursday March 08, 2018 @12:34PM (#16545980)
Agreed on dummy files, that's one of my least favorite things about Make. If you structure everything right though, you can usually figure out how to do it with the actual input and outputs.

GNU Make's documentation is very well written though. Like, shockingly well. Don't be afraid to read through it if you see some weird syntax that you can't figure out.

Re:Make your own build system by jstimpfle on Friday March 09, 2018 @06:28AM (#16551070)
I know Make quite well, but I don't like the clever compressed syntax. My ideal is a good structure it so that descriptive function names and clear semantics don't lead to unmaintainable verbosity.