Makefile: Difference between revisions

From David's Wiki
Created page with "Makefiles are a way to set up convenience wrappers when compiling so we do not need to memorize or type our every compilation option. The rules also tell us which compilation..."
 
No edit summary
 
Line 1: Line 1:
Makefiles are a way to set up convenience wrappers when compiling so we do not need to memorize or type our every compilation option.
Makefiles are a way to set up convenience wrappers when compiling so we do not need to memorize or type our every compilation option.
The rules also tell us which compilation steps to skip based on last edited time of source files.
The rules also tell us which compilation steps to skip based on last edited time of source files.
==Usage==
===make===
<syntaxhighlight lang="bash">
make <target>
</syntaxhighlight>
;Flags
See [https://www.gnu.org/software/make/manual/html_node/Options-Summary.html Options Summary]
* <code>-j [number]</code> number of jobs to run simultaneously

Latest revision as of 05:14, 2 February 2020

Makefiles are a way to set up convenience wrappers when compiling so we do not need to memorize or type our every compilation option. The rules also tell us which compilation steps to skip based on last edited time of source files.

Usage

make

make <target>
Flags

See Options Summary

  • -j [number] number of jobs to run simultaneously