mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-07-31 18:55:33 +02:00
make: Improve page
- Fix syntax error - Expand flags - Change "rule" to "target" as its a better terminology for make
This commit is contained in:
parent
b256d9e49e
commit
b18c728ace
1 changed files with 9 additions and 9 deletions
|
@ -1,24 +1,24 @@
|
||||||
# make
|
# make
|
||||||
|
|
||||||
> Task runner for rules described in Makefile.
|
> Task runner for targets described in Makefile.
|
||||||
> Mostly used to control the compilation of an executable from source code.
|
> Mostly used to control the compilation of an executable from source code.
|
||||||
|
|
||||||
- Call the all rule:
|
- Call the first target specified in the Makefile (usually named "all"):
|
||||||
|
|
||||||
`make`
|
`make`
|
||||||
|
|
||||||
- Call a specific rule:
|
- Call a specific target:
|
||||||
|
|
||||||
`make {{rule}}`
|
`make {{target}}`
|
||||||
|
|
||||||
- Use specific Makefile:
|
- Use a specific Makefile:
|
||||||
|
|
||||||
`make -f {{file}}`
|
`make --file {{file}}`
|
||||||
|
|
||||||
- Execute make from another directory:
|
- Execute make from another directory:
|
||||||
|
|
||||||
`make -C {{directory}}`
|
`make --directory {{directory}}`
|
||||||
|
|
||||||
- Force making of a rule, even if source files are unchanged
|
- Force making of a target, even if source files are unchanged:
|
||||||
|
|
||||||
`make -B {{rule}}`
|
`make --always-make {{target}}`
|
||||||
|
|
Loading…
Add table
Reference in a new issue