option to make utilities in the all target

This commit is contained in:
Ken Martin
2001-05-04 15:50:26 -04:00
parent 2383d6ff6d
commit 089aa3e106
10 changed files with 226 additions and 13 deletions

View File

@@ -43,16 +43,27 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
// cmAddCustomTargetCommand
bool cmAddCustomTargetCommand::Invoke(std::vector<std::string>& args)
{
bool all = false;
if(args.size() < 2 )
{
this->SetError("called with incorrect number of arguments");
return false;
}
std::vector<std::string> dep;
m_Makefile->ExpandVariablesInString(args[0]);
m_Makefile->ExpandVariablesInString(args[1]);
// all target option
if (args.size() >= 3)
{
if (args[2] == "ALL")
{
all = true;
}
}
m_Makefile->AddUtilityCommand(args[0].c_str(),
args[1].c_str());
args[1].c_str(), all);
return true;
}