Chapter 4: Writing Rules 33
.DELETE_ON_ERROR
If .DELETE_ON_ERROR is mentioned as a target anywhere in the makefile, then
make will delete the target of a rule if it has changed and its recipe exits with
a nonzero exit status, just as it does when it receives a signal. See Section 5.5
[Errors in Recipes], page 49.
.IGNORE
If you specify prerequisites for .IGNORE, then make will ignore errors in execution
of the recipe for those particular files. The recipe for .IGNORE (if any) is ignored.
If mentioned as a target with no prerequisites, .IGNORE says to ignore errors in
execution of recipes for all files. This usage of ‘.IGNORE’ is supported only for
historical compatibility. Since this affects every recipe in the makefile, it is not
very useful; we recommend you use the more selective ways to ignore errors in
specific recipes. See Section 5.5 [Errors in Recipes], page 49.
.LOW_RESOLUTION_TIME
If you specify prerequisites for .LOW_RESOLUTION_TIME, make assumes that
these files are created by commands that generate low resolution time stamps.
The recipe for the .LOW_RESOLUTION_TIME target are ignored.
The high resolution file time stamps of many modern file systems lessen the
chance of make incorrectly concluding that a file is up to date. Unfortunately,
some hosts do not provide a way to set a high resolution file time stamp, so
commands like ‘cp -p’ that explicitly set a file’s time stamp must discard its
sub-second part. If a file is created by such a command, you should list it
as a prerequisite of .LOW_RESOLUTION_TIME so that make does not mistakenly
conclude that the file is out of date. For example:
.LOW_RESOLUTION_TIME: dst
dst: src
cp -p src dst
Since ‘cp -p’ discards the sub-second part of src’s time stamp, dst is typically
slightly older than src even when it is up to date. The .LOW_RESOLUTION_TIME
line causes make to consider dst to be up to date if its time stamp is at the
start of the same second that src’s time stamp is in.
Due to a limitation of the archive format, archive member time stamps are
always low resolution. You need not list archive members as prerequisites of
.LOW_RESOLUTION_TIME, as make does this automatically.
.SILENT
If you specify prerequisites for .SILENT, then make will not print the recipe used
to remake those particular files before executing them. The recipe for .SILENT
is ignored.
If mentioned as a target with no prerequisites, .SILENT says not to print any
recipes before executing them. This usage of ‘.SILENT’ is supported only for
historical compatibility. We recommend you use the more selective ways to
silence specific recipes. See Section 5.2 [Recipe Echoing], page 43. If you want
to silence all recipes for a particular run of make, use the ‘-s’ or ‘--silent’
option (see Section 9.7 [Options Summary], page 104).
Kommentare zu diesen Handbüchern