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:
parent
c583e29d49
commit
0f05a323c3
1 changed files with 20 additions and 15 deletions
|
@ -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);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue