16.5. Special Target Names

 < Day Day Up > 

.DEFAULT:

Commands associated with this target are executed if make can't find any makefile entries or suffix rules with which to build a requested target.

.DELETE_ON_ERROR:

If this target appears in a makefile, then for any target that make is rebuilding, if its command(s) exit with a nonzero status, make deletes the target.

.EXPORT_ALL_VARIABLES:

The mere existence of this target causes make to export all variables to child processes.

.IGNORE:

With prerequisites, ignore problems just for those files. For historical compatibility, with no prerequisites, ignore error returns from all commands. This is the same as the -i option.

.INTERMEDIATE:

Prerequisites for this target are treated as intermediate files, even if they are mentioned explicitly in other rules. (An intermediate file is one that needs to be built "along the way" to the real target. For example, making a .c file from a .y file, in order to create a .o object file. The .c file is an intermediate file.) This prevents them from being re-created, unless one of their prerequisites is out of date.

.LOW_RESOLUTION_TIME:

make notes that prerequisites for this target are updated by commands that only create low resolution timestamps (one second granularity). For such targets, if their modification time starts at the same second as the modification time of a prerequisite, make does not try to compare the sub-second time values, and does not treat the file as being out of date.

.NOTPARALLEL:

Prerequisites for this target are ignored. Its existence in a makefile overrides any -j option, forcing all commands to run serially. Recursive make invocations may still run jobs in parallel, unless their makefiles also contain this target.

.POSIX:

When this target exists, changing the MAKEOVERRIDES variable does not affect the MAKEFLAGS variable. (This is a rather specialized case.) This target also disables the special treatment of $$@, $$(@D), and $$(@F).

.PHONY:

Prerequisites for this target are marked as "phony." I.e., make always executes their rules, even if a file by the same name exists.

.PRECIOUS:

Files you specify for this target are not removed when you send a signal (such as interrupt) that aborts make, or when a command line in your makefile returns an error.

.SECONDARY:

Prerequisites of this target are treated like intermediate files, except that they are never automatically removed. With no prerequisites, all targets are treated as secondary.

.SILENT:

When given prerequisites, make will not print the commands for those prerequisites when they are rebuilt. Otherwise, for historical compatibility, when this target has no prerequisites, make executes all commands silently, which is the same as the -s option.

.SUFFIXES:

Suffixes associated with this target are meaningful in suffix rules. If no suffixes are listed, the existing suffix rules are effectively "turned off."


     < Day Day Up > 


    Unix in a Nutshell
    Unix in a Nutshell, Fourth Edition
    ISBN: 0596100299
    EAN: 2147483647
    Year: 2005
    Pages: 201

    flylib.com © 2008-2017.
    If you may any questions please contact us: flylib@qtcs.net