Automated build tool, for compiling source code. make
looks for a file named makefile
in your directory and executes it.
instead of typing gcc -o hellomake hellomake.c hellofunc.c -I.
to compile a c++ project, create makefile
:
hellomake: hellomake.c hellofunc.c
gcc -o hellomake hellomake.c hellofunc.c -I.
Finds the respective dependencies and runs a command.
MACROS = -me
PSROFF = groff -Tps
$@
: name of file to be made$?
: names of the changed dependentstarget [target ...] : [dependent...]
[command ...]
defines make mytarget
command.