tldr/pages/common/make.md

25 lines
396 B
Markdown
Raw Normal View History

2016-01-04 10:23:09 +00:00
# make
> Task runner for rules described in Makefile.
> Mostly used to control the compilation of an executable from source code.
- Call the all rule:
2016-01-04 10:23:09 +00:00
`make`
- Call a specific rule:
2016-01-04 10:23:09 +00:00
`make {{rule}}`
- Use specific Makefile:
2016-01-04 10:23:09 +00:00
`make -f {{file}}`
- Execute make from another directory:
2016-01-04 10:23:09 +00:00
`make -C {{directory}}`
2016-07-05 15:21:56 +01:00
- Force making of a rule, even if source files are unchanged
`make -B {{rule}}`