90 likes | 228 Vues
In target rule sets, before issuing any commands, a set of predefined special macros is provided. These macros play a crucial role in file handling: `$@` represents the name of the file to be created; `$?` lists the names of the changed dependents; `$<` indicates the name of the related file that triggered the action; `$*` denotes the shared prefix between the target and the dependent files. Understanding these macros is essential for effective automation and build processes in software development.
E N D
8. Special MacrosBefore issuing any command in a target rule set there are certain special macros predefined.
$@ is the name of the file to be made.
$? is the names of the changed dependents.
$< the name of the related file that caused the action.
$* the prefix shared by target and dependent files.
$^
$+
Special MacrosBefore issuing any command in a target rule set there are certain special macros predefined.
$@ is the name of the file to be made.
$? is the names of the changed dependents.
$< the name of the related file that caused the action.
$* the prefix shared by target and dependent files.
$^
$+