- Published on
Makefile Symbols
$@ is the name of the target being generated, and $< the first prerequisite (usually a source file). You can find a list of all these special variables in the GNU Make manual.
For example, consider the following declaration:
all: library.cpp main.cpp
In this case:
$@evaluates toall$<evaluates tolibrary.cpp$^evaluates tolibrary.cpp main.cpp