1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-29 19:45:01 +02:00

Fix for [Bug 203672] make: *** No rule to make target 'clean' for empty clean

This commit is contained in:
Mikhail Sennikovsky 2007-09-18 11:16:09 +00:00
parent c583e29d49
commit 0f05a323c3

View file

@ -1525,22 +1525,27 @@ public class CommonBuilder extends ACBuilder {
performExternalClean(bInfo, false, monitor); performExternalClean(bInfo, false, monitor);
} else { } else {
boolean programmatically = true; boolean programmatically = true;
if(!cfg.getEditableBuilder().isInternalBuilder()){ IPath path = ManagedBuildManager.getBuildFullPath(cfg, bInfo.getBuilder());
fBuildErrOccured = false; IResource rc = path != null ? ResourcesPlugin.getWorkspace().getRoot().findMember(path) : null;
try {
performExternalClean(bInfo, false, monitor);
} catch (CoreException e) {
fBuildErrOccured = true;
}
if(!fBuildErrOccured)
programmatically = false;
}
if(programmatically){ if(path == null || (rc != null && rc.getType() != IResource.FILE)){
try { if(!cfg.getEditableBuilder().isInternalBuilder()){
cleanWithInternalBuilder(bInfo, monitor); fBuildErrOccured = false;
} catch (CoreException e) { try {
cleanProgrammatically(bInfo, monitor); performExternalClean(bInfo, false, monitor);
} catch (CoreException e) {
fBuildErrOccured = true;
}
if(!fBuildErrOccured)
programmatically = false;
}
if(programmatically){
try {
cleanWithInternalBuilder(bInfo, monitor);
} catch (CoreException e) {
cleanProgrammatically(bInfo, monitor);
}
} }
} }
} }