Understanding Special Macros in Target Rule Sets
90 likes | 234 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; `$
Understanding Special Macros in Target Rule Sets
E N D
Presentation Transcript
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.
$^
$+