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);
|
||||
} else {
|
||||
boolean programmatically = true;
|
||||
if(!cfg.getEditableBuilder().isInternalBuilder()){
|
||||
fBuildErrOccured = false;
|
||||
try {
|
||||
performExternalClean(bInfo, false, monitor);
|
||||
} catch (CoreException e) {
|
||||
fBuildErrOccured = true;
|
||||
}
|
||||
if(!fBuildErrOccured)
|
||||
programmatically = false;
|
||||
}
|
||||
IPath path = ManagedBuildManager.getBuildFullPath(cfg, bInfo.getBuilder());
|
||||
IResource rc = path != null ? ResourcesPlugin.getWorkspace().getRoot().findMember(path) : null;
|
||||
|
||||
if(programmatically){
|
||||
try {
|
||||
cleanWithInternalBuilder(bInfo, monitor);
|
||||
} catch (CoreException e) {
|
||||
cleanProgrammatically(bInfo, monitor);
|
||||
if(path == null || (rc != null && rc.getType() != IResource.FILE)){
|
||||
if(!cfg.getEditableBuilder().isInternalBuilder()){
|
||||
fBuildErrOccured = false;
|
||||
try {
|
||||
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