Open System Services Shell and Utilities Reference Manual (G06.28+, H06.05+)

make(1) OSS Shell and Utilities Reference Manual
section, Special Targets, lists the special sources, or prerequisites, and targets for a make
le.
Special Targets
Special targets must not be included with other targets; that is, they must be the only target
specied. These control the operation of the make command.
The supported special target names are:
.DEFAULT
This is used as the rule for any target (that was used only as a source) that make cannot
create in any other way. Only the shell script is used. The < (left angle bracket) vari-
able of a target that inherits .DEFAULTs commands is set to the targets own name.
.IGNORE
Prerequisites of this target are targets themselves; this causes errors from commands
associated with them to be ignored. If no prerequisites are speci
ed, this is the
equivalent of specifying the -i ag.
.POSIX This keyword currently has no effect on make behavior, because it is the only behavior
supported. However, you should use this as the rst noncommand line of a makele if
you want to avoid possible conicts with future enhancements.
.PRECIOUS
Prerequisites of this target are targets themselves. .PRECIOUS prevents the target
from being removed. If no sources are specied, the .PRECIOUS attribute is applied
to every target in the le. Normally, when make is interrupted (for example, with
SIGHUP, SIGTERM, SIGINT,orSIGQUIT signals), it removes any partially made
targets. If make was invoked with the -n, -p,or-q ags, however, the target is con-
sidered to have the .PRECIOUS attribute.
.SILENT
Prerequisites of the target are targets themselves; this prevents commands associated
with the target from being written to the standard output le before they are executed.
If no sources are specied, the .SILENT attribute is applied to every command in the
le.
.SUFFIXES
Prerequisites of the target are appended to the list of known sufxes. If no sufxes are
specied, any previously specied sufxes are deleted. These sufxes are used by
inference rules, as described in the Inference Rules subsection. To change the order of
sufxes, you need to specify an empty .SUFFIXES entry, then a new list of .SUF-
FIXES entries. Makeles must not associate commands with .SUFFIXES.
Inference Rules
The make command has a default set of inference rules, which you can supplement, or overwrite,
with additional inference rule denitions in the makele. Inference rules consist of target
sufxes and commands. From the sufxes, make infers the prerequisites, and from both the
sufxes and their prerequisites, make command can infer how to make a target up-to-date. Infer-
ence rules have the following format:
rule:
<Tab>command
...
where rule has one of the following forms:
.s1 A single-sufx inference rule. This rule describes how to build a target that is appended
with one of the single sufxes.
64 Hewlett-Packard Company 527188-007