-#include <algorithm>
-#include "tool.h"
-
-using namespace std;
-
-Tool::Tool(Builder &b, const string &t):
- builder(b),
- tag(t)
-{ }
-
-bool Tool::accepts_suffix(const string &suffix) const
-{
- return find(input_suffixes.begin(), input_suffixes.end(), suffix)!=input_suffixes.end();
-}
-
-Target *Tool::create_target(Target &source, const string &arg) const
-{
- list<Target *> sources;
- sources.push_back(&source);
- return create_target(sources, arg);
-}