Hacker News new | ask | show | jobs
by black_knight 3995 days ago
How does it compare to mk[0]?

mk was make done better for Plan 9.

[0] http://plan9.bell-labs.com/sys/doc/mk.html

1 comments

mk and Ninja (the target to which Kati compiles) appear to be almost equivalent to each other, except that mk has patterns ("here is how to compile any .c file into a .o file") and Ninja requires that each target be written explicitly ("here is how to compile foo.c into foo.o", once per file).

This is okay, because mk is meant to be written by humans and Ninja is meant to be a target for compilers like Kati and cmake.

Make uses patterns as well, especially if you're "Doing It Right"(tm) [0][1][2].

[0] http://git.suckless.org/st/tree/Makefile#n6

[1] http://git.suckless.org/st/tree/Makefile#n7

[2] http://git.suckless.org/st/tree/Makefile#n20