2
0
mirror of https://github.com/boostorg/build.git synced 2026-02-14 12:42:11 +00:00

Allow passing in the caller to the make rule, so that other modules

(that aren't user projects) can use it to add targets to their callers


[SVN r18137]
This commit is contained in:
Douglas Gregor
2003-03-30 15:24:57 +00:00
parent 630cbb9b2b
commit f17b4f4e95

View File

@@ -36,9 +36,10 @@ rule make-target-class ( name : project : sources * : requirements *
class make-target-class : basic-target ;
rule make ( target-name : sources * : generating-rule + : requirements * )
rule make ( target-name : sources * : generating-rule + : requirements *
: caller ? )
{
local caller = [ CALLER_MODULE ] ;
caller ?= [ CALLER_MODULE ] ;
local rules = [ RULENAMES $(caller) ] ;
if $(generating-rule[1]) in $(rules)
{