LinuxCommandLibrary

mk

Task runner for targets described in Mkfile.

TLDR

Call the first target specified in the Mkfile (usually named "all")

$ mk
copy


Call a specific target
$ mk [target]
copy


Call a specific target, executing 4 jobs at a time in parallel
$ NPROC=4 mk [target]
copy


Force mking of a target, even if source files are unchanged
$ mk -w[target] [target]
copy


Assume all targets to be out of date. Thus, update target and all of its dependencies
$ mk -a [target]
copy


Keep going as far as possible on error
$ mk -k
copy

Copied to clipboard