This info copied from: https://vuanhduy.wordpress.com/2014/05/02/the-variants-of-gnu-makefile-assignment-operation/ The differences in =, :=, ?= and += when assigning a macro in Makefile. = operation If the variable does not have a value, the operation assign the value to it If the variable already had a value, it is replaced. This value will be expanded when the variable is […]
makefile
Makefile variables ($@, $< ...)
Ever wondered what the funny-looking vars in the GNU Makefiles are? These two are the most common ones: $@ and @< there are some other are special vars as well. Here’s what these two mean, and you can look up the rest on the GNU Makefile “Automatic Variables” help page: $@ -is the name of the target currently […]