mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-29 03:45:35 +02:00
Fix the parsing.
This commit is contained in:
parent
9fbe84c409
commit
f5a40d1db9
1 changed files with 5 additions and 1 deletions
|
@ -125,6 +125,7 @@ public class PosixMakefile extends AbstractMakefile {
|
|||
continue;
|
||||
}
|
||||
|
||||
// Target Rule ?
|
||||
if (MakefileUtil.isTargetRule(line)) {
|
||||
String[] targets;
|
||||
String[] reqs = new String[0];
|
||||
|
@ -132,7 +133,10 @@ public class PosixMakefile extends AbstractMakefile {
|
|||
int index = MakefileUtil.indexOf(line.toCharArray(), ':');
|
||||
if (index != -1) {
|
||||
String target = line.substring(0, index);
|
||||
// Break the targets
|
||||
// Break the targets, some target have "::" for separator
|
||||
if (target.startsWith(":")) {
|
||||
target = target.substring(1);
|
||||
}
|
||||
targets = MakefileUtil.findTargets(target.trim());
|
||||
|
||||
String req = line.substring(index + 1);
|
||||
|
|
Loading…
Add table
Reference in a new issue