targetΒΆ
type target < any
Base type for all targets.
meth (Target: target) << (Dependency: any): target
Adds a dependency to
Target
. Equivalent toTarget[Dependency]
.meth (Target: target) => (Function: any): target
Sets the build function for
Target
toFunction
and returnsTarget
. The current context is also captured.meth (Target: target)[Dependency: any, ...]: target
Adds a number of dependencies to
Target
. * IfDependency
is a list then each value is added. * IfDependency
is a string then a dependency on the corresponding symbol target is added. * OtherwiseDependency
should be another target. ReturnsTarget
.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 returnsnil
.meth (Target: target):build(Function: any): target
Sets the build function for
Target
toFunction
and returnsTarget
. The current context is also captured.meth (Target: target):context: context | nil
Returns the build context of
Target
if one has been set, otherwise returnsnil
.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.