Automatic variables automatically extract a series of files defined in the pattern until all files in the pattern are completed. This automation variable should only appear in the Rule command.
The following describes all automation variables:
[Email protected]
Indicates the target file set in the rule.. In a pattern rule, if there are multiple targets, "[email protected]" is the set that matches the schema definition in the target.
$ %
Only when the target is in the function library fileIndicates the name of the target Member in the rule. For example, if a target is "foo. A (Bar. o) ", then," $ % "is" bar. O "," [email protected] "is" foo. A ". If the target file is not a function library file ([. A] in UNIX and [. Lib] in Windows), the value is null.
$ <
Name of the first target in the dependency target. If the dependency target is defined in the mode ("%"), "$ <" is a series of file sets that conform to the mode. Note that it is obtained one by one.
$?
All sets of New dependent targets. Separated by spaces.
$ ^
Set of all dependent targets. Separated by spaces. If there are multiple duplicate dependency targets, the variable will remove the duplicate dependency targets and retain only one copy.
$ +
This variable is similar to "$ ^" and is also a set of all dependent targets. It does not remove repeated dependency targets.
ALL: Foo. O Bar. O Foo. o
[Email protected]: All
$ ^: Foo. O Bar. o
$ +: Foo. O Bar. O Foo. o
$ <: Foo. o
Similar
[Email protected]: $ ^