aboutsummaryrefslogtreecommitdiff
path: root/src/rule.cpp
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/rule.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/rule.cpp b/src/rule.cpp
index 979075b..ce37e93 100644
--- a/src/rule.cpp
+++ b/src/rule.cpp
@@ -77,6 +77,7 @@ Perform *Rule::buildCommand( Builder &bld, const char *sCmd, Builder::varmap *va
77 77
78std::list<std::string> Rule::execute( Builder &bld, std::list<std::string> lInput, std::list<Perform *> &lPerf, const char *sTarget ) 78std::list<std::string> Rule::execute( Builder &bld, std::list<std::string> lInput, std::list<Perform *> &lPerf, const char *sTarget )
79{ 79{
80 bld.requiresRegexp( false );
80 std::list<Rule *> lRule = bld.findRuleChain( this ); 81 std::list<Rule *> lRule = bld.findRuleChain( this );
81 /* 82 /*
82 if( !lRule.empty() ) 83 if( !lRule.empty() )
@@ -134,11 +135,21 @@ std::list<std::string> Rule::execute( Builder &bld, std::list<std::string> lInpu
134 revars 135 revars
135 ); 136 );
136 lPerf.push_back( p ); 137 lPerf.push_back( p );
138
139 bld.requires(
140 (*revars)["target"].c_str(),
141 (*revars)["match"].c_str()
142 );
137 } 143 }
138 else if( mHow == matchAll ) 144 else if( mHow == matchAll )
139 { 145 {
140 sMatches += " "; 146 sMatches += " ";
141 sMatches += (*i); 147 sMatches += (*i);
148
149 bld.requires(
150 sTarget,
151 (*i).c_str()
152 );
142 } 153 }
143 } 154 }
144 delete revars; 155 delete revars;