2
0
mirror of https://github.com/boostorg/build.git synced 2026-02-16 13:22:11 +00:00

Make it possible to specify rule name with '@' prefix to the 'make' rule,

just like for 'notfile' rule. Using rule name without '@' still works
for backward compatibility.


[SVN r33632]
This commit is contained in:
Vladimir Prus
2006-04-10 11:26:04 +00:00
parent 1982d2c883
commit 5647da05dc

View File

@@ -47,7 +47,12 @@ rule make ( target-name : sources * : generating-rule + : requirements * )
# The '@' sign causes the feature.jam module to qualify rule name
# with the module name of current project, if needed.
requirements += <action>@$(generating-rule) ;
local m = [ MATCH ^(@).* : $(generating-rule) ] ;
if ! $(m)
{
generating-rule = @$(generating-rule) ;
}
requirements += <action>$(generating-rule) ;
targets.main-target-alternative
[ new make-target-class $(target-name) : $(project)