summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/graph.cc7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/graph.cc b/src/graph.cc
index 8abaa2a..13927fe 100644
--- a/src/graph.cc
+++ b/src/graph.cc
@@ -105,7 +105,12 @@ struct EdgeEnv : public Env {
result.append((*i)->file_->path_);
}
} else if (var == "out") {
- result = edge_->outputs_[0]->file_->path_;
+ for (vector<Node*>::iterator i = edge_->outputs_.begin();
+ i != edge_->outputs_.end(); ++i) {
+ if (!result.empty())
+ result.push_back(' ');
+ result.append((*i)->file_->path_);
+ }
} else if (edge_->env_) {
return edge_->env_->LookupVariable(var);
}