News for hackers. Stuff that matters.
Re:Using `make` to compile C programs by gylterud on Sunday June 15, 2025 @02:20AM (#44280868)
I haven’t tried every version of make there is, but a few things about mk off the top of my head:

- Readability: $target, $prereq, $stem is much easier to read than Make’s $@, $<. Any white space can be used to indent.

- Flags after the target to do useful thing such as autodelete target om error (no more confusion on about partial files), and controlling verbosity, and specifying virtualness.

- Stricter when dealing with overlapping targets.

- Has a flag for printing why each target is being generated.

- Regex in targets is sometimes really useful! Taken together with the strictness towards overlapping targets this leads to less confusion overall.

There are no comments on this comment yet.