Readding MakeSteps to the clean step list should set them up correctly

That is set the argument to "clean" and ensure that the return value is
ignored.

Change-Id: I1f15ad464e6f4608d7eb698365846a4c765f1d22
Reviewed-by: Tobias Hunger <tobias.hunger@nokia.com>
Reviewed-by: Andre Hartmann <aha_1980@gmx.de>
This commit is contained in:
Daniel Teske
2011-11-24 12:42:52 +01:00
parent 097850c842
commit d13fca02a4
3 changed files with 20 additions and 3 deletions

View File

@@ -447,7 +447,12 @@ ProjectExplorer::BuildStep *MakeStepFactory::create(ProjectExplorer::BuildStepLi
{
if (!canCreate(parent, id))
return 0;
return new MakeStep(parent);
MakeStep *step = new MakeStep(parent);
if (parent->id() == ProjectExplorer::Constants::BUILDSTEPS_CLEAN) {
step->setClean(true);
step->setUserArguments("clean");
}
return step;
}
bool MakeStepFactory::canClone(ProjectExplorer::BuildStepList *parent, ProjectExplorer::BuildStep *source) const