2
0
mirror of https://github.com/boostorg/build.git synced 2026-02-17 01:32:12 +00:00

Improved grammar of comment on specific-main-target()

Added a comment for str() and improved variable naming


[SVN r18369]
This commit is contained in:
Dave Abrahams
2003-05-08 13:32:34 +00:00
parent a2f68b1635
commit da3ac6d658
2 changed files with 50 additions and 18 deletions

View File

@@ -294,20 +294,35 @@ rule abstract-file-target ( name
}
}
# Returns the name of main target this virtual target is specific too.
# Ordinary, it's assumed that grist of the actual Jam target and target path
# is determined by project, base properties, target name and type.
# Derived classes may return non-empty string to indicate that the target is
# specific to the given main target.
# Returns the name of main target this virtual target is specific
# to.
#
# Ordinarily, it's assumed that any grist on the actual Jam target
# and target path is determined by project, base properties,
# target name and type. Derived classes may return a non-empty
# string to indicate that the target is specific to the given main
# target.
rule specific-main-target ( )
{
return "" ;
}
# Return a human-readable representation of this target
#
# If this target has an action, that's:
#
# { <action-name>-<self.name>.<self.type> <action-sources>... }
#
# otherwise, it's:
#
# { <self.name>.<self.type> }
#
rule str ( )
{
local action = [ action ] ;
local filename = [ sequence.join $(self.name) "." $(self.type) ] ;
local name-dot-type = [ sequence.join $(self.name) "." $(self.type) ] ;
if $(action)
{
local sources = [ $(action).sources ] ;
@@ -318,12 +333,13 @@ rule abstract-file-target ( name
ss += [ $(s).str ] ;
}
local name = [ $(action).action-name ] ;
return "{" $(name)-$(filename) $(ss) "}" ;
local action-name = [ $(action).action-name ] ;
return "{" $(action-name)-$(name-dot-type) $(ss) "}" ;
}
else
{
return "{" $(filename) "}" ;
return "{" $(name-dot-type) "}" ;
}
}

View File

@@ -294,20 +294,35 @@ rule abstract-file-target ( name
}
}
# Returns the name of main target this virtual target is specific too.
# Ordinary, it's assumed that grist of the actual Jam target and target path
# is determined by project, base properties, target name and type.
# Derived classes may return non-empty string to indicate that the target is
# specific to the given main target.
# Returns the name of main target this virtual target is specific
# to.
#
# Ordinarily, it's assumed that any grist on the actual Jam target
# and target path is determined by project, base properties,
# target name and type. Derived classes may return a non-empty
# string to indicate that the target is specific to the given main
# target.
rule specific-main-target ( )
{
return "" ;
}
# Return a human-readable representation of this target
#
# If this target has an action, that's:
#
# { <action-name>-<self.name>.<self.type> <action-sources>... }
#
# otherwise, it's:
#
# { <self.name>.<self.type> }
#
rule str ( )
{
local action = [ action ] ;
local filename = [ sequence.join $(self.name) "." $(self.type) ] ;
local name-dot-type = [ sequence.join $(self.name) "." $(self.type) ] ;
if $(action)
{
local sources = [ $(action).sources ] ;
@@ -318,12 +333,13 @@ rule abstract-file-target ( name
ss += [ $(s).str ] ;
}
local name = [ $(action).action-name ] ;
return "{" $(name)-$(filename) $(ss) "}" ;
local action-name = [ $(action).action-name ] ;
return "{" $(action-name)-$(name-dot-type) $(ss) "}" ;
}
else
{
return "{" $(filename) "}" ;
return "{" $(name-dot-type) "}" ;
}
}