targetΒΆ

type target < any

Base type for all targets.

meth (Target: target) << (Dependency: any): target

Adds a dependency to Target. Equivalent to Target[Dependency].

meth (Target: target) => (Function: any): target

Sets the build function for Target to Function and returns Target. The current context is also captured.

meth (Target: target)[Dependency: any, ...]: target

Adds a number of dependencies to Target. * If Dependency is a list then each value is added. * If Dependency is a string then a dependency on the corresponding symbol target is added. * Otherwise Dependency should be another target. Returns Target.

meth (Target: target):affects: targetset

Returns the set of dependencies of Target.

meth (Target: target):build: function | nil

Returns the build function of Target if one has been set, otherwise returns nil.

meth (Target: target):build(Function: any): target

Sets the build function for Target to Function and returns Target. The current context is also captured.

meth (Target: target):context: context | nil

Returns the build context of Target if one has been set, otherwise returns nil.

meth (Target: target):depends: targetset

Returns the set of dependencies of Target.

meth (Target: target):id: string

Returns the id of Target.

meth (Target: target):priority: integer

Returns the computed priority of Target.

meth (Target: target):scan(Name: string): scan

Returns a new scan target using Target as the base target.