Skip to main content

Task runner for targets described in Makefile. Mostly used to control the compilation of an executable from source code.

# To call the first target specified in the Makefile (usually named "all"):

# To call a specific target:
make <target>

# To call a specific target, executing 4 jobs at a time in parallel:
make -j<4> <target>

# To use a specific Makefile:
make --file <file>

# To execute make from another directory:
make --directory <directory>

# To force making of a target, even if source files are unchanged:
make --always-make <target>

# To override variables defined in the Makefile by the environment:
make --environment-overrides <target>