Update cheatsheets

This commit is contained in:
ivuorinen
2024-02-21 11:19:49 +00:00
parent 4e88a1b42f
commit 3d653cc7e6
4803 changed files with 127002 additions and 0 deletions

42
make Normal file
View File

@@ -0,0 +1,42 @@
---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# make
> Task runner for targets described in Makefile.
> Mostly used to control the compilation of an executable from source code.
> More information: <https://www.gnu.org/software/make/manual/make.html>.
- Call the first target specified in the Makefile (usually named "all"):
`make`
- Call a specific target:
`make {{target}}`
- Call a specific target, executing 4 jobs at a time in parallel:
`make -j{{4}} {{target}}`
- Use a specific Makefile:
`make --file {{path/to/file}}`
- Execute make from another directory:
`make --directory {{path/to/directory}}`
- Force making of a target, even if source files are unchanged:
`make --always-make {{target}}`
- Override a variable defined in the Makefile:
`make {{target}} {{variable}}={{new_value}}`
- Override variables defined in the Makefile by the environment:
`make --environment-overrides {{target}}`