MPE/iX Shell and Utilities Reference Manual, Vol 1

make(1) MPE/iX Shell and Utilities make(1)
$< Subset of which prompt the rule’s execution (specified on the rule line where the
$< appears). In normal rules, this contains the list of all recently changed prerequi-
sites. In inference rules, this contains the single prerequisite associated with the cur-
rent, executing rule.
$> The name of the library if the current target is a library member.
$* The target name with no suffix ($(%:db)) or the value of the stem in a meta-rule.
The constructs $$@, $$%, $$>, and $$* yield meaningful results when placed in a prerequi-
site list as a dynamic prerequisite.
$$@ stands for the target currently being made. The following two examples are equivalent:
fred : $$@.c
fred : fred.c
The construct may be modified:
fred.o : $$(@:b).c
If you are building a library, $$% stands for the name of the archive member being made. If
you are building a normal target, $$% stands for the name of the target currently being made.
$$* stands for the name of the current target being made, but with no suffix.
If you are building a library, $$> stands for the name of the archive library being made. If
you are not building a library, its use is invalid.
Comments
Comments begin with the number sign (#) character and extend to the end-of-line. make dis-
cards all comment text.
Makefile Contents
Inside makefiles, you can split long lines over several lines of text. To do this, put a backslash
(\) at the very end of the line. You can use this technique to extend comments as well as rec-
ipe lines and macro definitions for example.
If a rule or macro definition must contain a # character, use \#; otherwise, make mistakes the
# for the beginning of a comment. Also, $$ stands for $.
File names that contain a colon (:) must always be enclosed in quotes (""):
"a:target" : "a:prereq"
Commands and Utilities 1-339