The use of predefined variables (V)
There are some predefined variables in the makefile, such as automatic variables: $@,$^,$ $@ refers to the target in the current rule that triggers the command to be executed;b> $^refers to all dependencies in the current rule;c> $
< 是指当前规则中的第一个依赖。关于自动变量的使用如下
Let's take the code as an example to analyze and explain
.PHONY : all first second thirdall : first second third @echo "\$$@ => $@" @echo "$$^ => $^" @echo "$$
< =>$