prereq annotation tag

1 minute readReference

Synopsis

A job prerequisite. A prerequisite is a file or target that must be up-to-date before this job is run.

Attributes

file

Filename of the prerequisite.

source

Indicates the source of the prerequisite.

  • autodep: The prerequisite was detected in a prior run and was present in the history file.

  • file: The prerequisite was specified in the makefile.

type

Indicates the prerequisite type.

  • normal: The target is a normal dependency. This may be a phony target, but is usually a file.

  • implicit: The target is an implicit dependency. Implicit dependencies are specific to Ninja Build.

  • order-only: The target is an order-only dependency.

The prerequisite type is only specified for prerequisites sourced from a file. For autodep prerequisites, the type is always normal.

Contents

None.