I am new to learning make files.I was reading this post.
could anyone please tell me what is $@
variable used for inside a makefile?
The $@
stands for the target of the current rule. More info here.
It's used to refer to the target, for example:
test:
gcc -o $@ [email protected]
Would compile program test
from test.c
if you ran make test
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With