diff options
author | Peter Collingbourne <peter@pcc.me.uk> | 2011-11-25 15:18:49 (GMT) |
---|---|---|
committer | Peter Collingbourne <peter@pcc.me.uk> | 2011-12-06 09:07:45 (GMT) |
commit | 722953d14c16596bf4316d3c6eda18b3a17eb693 (patch) | |
tree | 1f6cce9ab49367de6827ca315c0fe45a5e4724d2 /src/clean.cc | |
parent | 57d8557ff3bfe6772f2dbada1d1ffa5d378ca763 (diff) | |
download | Ninja-722953d14c16596bf4316d3c6eda18b3a17eb693.zip Ninja-722953d14c16596bf4316d3c6eda18b3a17eb693.tar.gz Ninja-722953d14c16596bf4316d3c6eda18b3a17eb693.tar.bz2 |
Have the clean tool remove depfiles
Diffstat (limited to 'src/clean.cc')
-rw-r--r-- | src/clean.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/clean.cc b/src/clean.cc index 033fa96..a89e1f5 100644 --- a/src/clean.cc +++ b/src/clean.cc @@ -111,6 +111,8 @@ int Cleaner::CleanAll(bool generator) { out_node != (*e)->outputs_.end(); ++out_node) { Remove((*out_node)->file_->path_); } + if (!(*e)->rule_->depfile_.empty()) + Remove((*e)->EvaluateDepFile()); } PrintFooter(); return status_; |