mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-09-10 17:13:50 +02:00
mk: add page (#7756)
This commit is contained in:
parent
b02d5dc9f1
commit
60413b149c
1 changed files with 29 additions and 0 deletions
29
pages/common/mk.md
Normal file
29
pages/common/mk.md
Normal file
|
@ -0,0 +1,29 @@
|
|||
# mk
|
||||
|
||||
> Task runner for targets described in Mkfile.
|
||||
> Mostly used to control the compilation of an executable from source code.
|
||||
> More information: <http://doc.cat-v.org/plan_9/4th_edition/papers/mk>.
|
||||
|
||||
- Call the first target specified in the Mkfile (usually named "all"):
|
||||
|
||||
`mk`
|
||||
|
||||
- Call a specific target:
|
||||
|
||||
`mk {{target}}`
|
||||
|
||||
- Call a specific target, executing 4 jobs at a time in parallel:
|
||||
|
||||
`NPROC=4 mk {{target}}`
|
||||
|
||||
- Force mking of a target, even if source files are unchanged:
|
||||
|
||||
`mk -w{{target}} {{target}}`
|
||||
|
||||
- Assume all targets to be out of date. Thus, update `target` and all of its dependencies:
|
||||
|
||||
`mk -a {{target}}`
|
||||
|
||||
- Keep going as far as possible on error:
|
||||
|
||||
`mk -k`
|
Loading…
Add table
Reference in a new issue