- $@
- The file name of the target.
- $<
- The name of the first dependency.
- $*
- The part of a filename which matched a suffix rule.
- $?
- The names of all the dependencies newer than the target separated by spaces.
- $^
- The names of all the dependencies separated by spaces, but with duplicate names removed.
- $+
- The names of all the dependencies separated by spaces with duplicate names included and in the same order as in the rule.
Monday, August 20, 2012
Special macros in Makefile
Now all those $@ thingees that appear in the example above
and elsewhere in the makefile are clearly not plain old macros, since
they're never defined and yet this makefile works quite well, I
promise. The reason is that there are a number of special macros with
one character names that are only useable as part of a dependency
rule:
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment